diff options
author | Chengguang Xu <cgxu519@mykernel.net> | 2020-07-03 20:44:11 +0800 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2020-07-09 08:14:01 +0200 |
commit | cf1013f441eb997ae770566f88cf021086d34cff (patch) | |
tree | 1f79702e42ee729c961270b1de2e16a06a557130 | |
parent | 30b42a714d3241ce2aa2561f629dd6088c60fef7 (diff) | |
download | linux-cf1013f441eb997ae770566f88cf021086d34cff.tar.gz linux-cf1013f441eb997ae770566f88cf021086d34cff.tar.bz2 linux-cf1013f441eb997ae770566f88cf021086d34cff.zip |
ext2: fix some incorrect comments in inode.c
There are some incorrect comments in inode.c, so fix them
properly.
Link: https://lore.kernel.org/r/20200703124411.24085-1-cgxu519@mykernel.net
Signed-off-by: Chengguang Xu <cgxu519@mykernel.net>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/ext2/inode.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index c8b371c82b4f..80662e1f7889 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -356,8 +356,7 @@ static inline ext2_fsblk_t ext2_find_goal(struct inode *inode, long block, * @blks: number of data blocks to be mapped. * @blocks_to_boundary: the offset in the indirect block * - * return the total number of blocks to be allocate, including the - * direct and indirect blocks. + * return the number of direct blocks to allocate. */ static int ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, @@ -390,11 +389,9 @@ ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, * ext2_alloc_blocks: multiple allocate blocks needed for a branch * @indirect_blks: the number of blocks need to allocate for indirect * blocks - * + * @blks: the number of blocks need to allocate for direct blocks * @new_blocks: on return it will store the new block numbers for * the indirect blocks(if needed) and the first direct block, - * @blks: on return it will store the total number of allocated - * direct blocks */ static int ext2_alloc_blocks(struct inode *inode, ext2_fsblk_t goal, int indirect_blks, int blks, |