git: 2733b242e4c6 - main - ffs(3): Fix a common typo in source code comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Mar 2022 17:37:10 UTC
The branch main has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=2733b242e4c69240fed52854682f0c3b0079be17 commit 2733b242e4c69240fed52854682f0c3b0079be17 Author: Gordon Bergling <gbe@FreeBSD.org> AuthorDate: 2022-03-27 16:03:16 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2022-03-28 17:37:03 +0000 ffs(3): Fix a common typo in source code comments - s/quadradically/quadratically/ Obtained from: NetBSD MFC after: 3 days --- sys/ufs/ffs/ffs_alloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index 50b176b262f4..8049657dc13d 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -138,13 +138,13 @@ static void ffs_ckhash_cg(struct buf *); * 1) allocate the requested block. * 2) allocate a rotationally optimal block in the same cylinder. * 3) allocate a block in the same cylinder group. - * 4) quadradically rehash into other cylinder groups, until an + * 4) quadratically rehash into other cylinder groups, until an * available block is located. * If no block preference is given the following hierarchy is used * to allocate a block: * 1) allocate a block in the cylinder group that contains the * inode for the file. - * 2) quadradically rehash into other cylinder groups, until an + * 2) quadratically rehash into other cylinder groups, until an * available block is located. */ int @@ -1095,12 +1095,12 @@ fail: * If allocating in a directory, the following hierarchy is followed: * 1) allocate the preferred inode. * 2) allocate an inode in the same cylinder group. - * 3) quadradically rehash into other cylinder groups, until an + * 3) quadratically rehash into other cylinder groups, until an * available inode is located. * If no inode preference is given the following hierarchy is used * to allocate an inode: * 1) allocate an inode in cylinder group 0. - * 2) quadradically rehash into other cylinder groups, until an + * 2) quadratically rehash into other cylinder groups, until an * available inode is located. */ int @@ -1608,7 +1608,7 @@ ffs_blkpref_ufs2(ip, lbn, indx, bap) * * The policy implemented by this algorithm is: * 1) allocate the block in its requested cylinder group. - * 2) quadradically rehash on the cylinder group number. + * 2) quadratically rehash on the cylinder group number. * 3) brute force search for a free block. * * Must be called with the UFS lock held. Will release the lock on success