git: c43213bf0ee6 - stable/12 - fs: fix a few common typos in source code comments
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Feb 2022 06:28:36 UTC
The branch stable/12 has been updated by gbe (doc committer): URL: https://cgit.FreeBSD.org/src/commit/?id=c43213bf0ee6da7a122e1dad21f259a319e6b28d commit c43213bf0ee6da7a122e1dad21f259a319e6b28d Author: Gordon Bergling <gbe@FreeBSD.org> AuthorDate: 2022-02-06 12:48:31 +0000 Commit: Gordon Bergling <gbe@FreeBSD.org> CommitDate: 2022-02-09 06:26:47 +0000 fs: fix a few common typos in source code comments - s/quadradically/quadratically/ - s/persistant/persistent/ Obtained from: NetBSD (cherry picked from commit 8ea3ceda7644b7b93532d0c31b50ac5fa61e51a3) --- sys/fs/devfs/devfs_vnops.c | 2 +- sys/fs/ext2fs/ext2_alloc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index db94aeb76dc3..67abbc3a1a48 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -1212,7 +1212,7 @@ devfs_pathconf(struct vop_pathconf_args *ap) #ifdef MAC /* * If MAC is enabled, devfs automatically supports - * trivial non-persistant label storage. + * trivial non-persistent label storage. */ *ap->a_retval = 1; #else diff --git a/sys/fs/ext2fs/ext2_alloc.c b/sys/fs/ext2fs/ext2_alloc.c index 2595ed4636bd..144fdec0a101 100644 --- a/sys/fs/ext2fs/ext2_alloc.c +++ b/sys/fs/ext2fs/ext2_alloc.c @@ -90,13 +90,13 @@ static daddr_t ext2_mapsearch(struct m_ext2fs *, char *, daddr_t); * 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 @@ -743,7 +743,7 @@ ext2_blkpref(struct inode *ip, e2fs_lbn_t lbn, int indx, e2fs_daddr_t *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. */ static e4fs_daddr_t