Commit cf1013f4 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jan Kara

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.netSigned-off-by: default avatarChengguang Xu <cgxu519@mykernel.net>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 30b42a71
...@@ -356,8 +356,7 @@ static inline ext2_fsblk_t ext2_find_goal(struct inode *inode, long block, ...@@ -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. * @blks: number of data blocks to be mapped.
* @blocks_to_boundary: the offset in the indirect block * @blocks_to_boundary: the offset in the indirect block
* *
* return the total number of blocks to be allocate, including the * return the number of direct blocks to allocate.
* direct and indirect blocks.
*/ */
static int static int
ext2_blks_to_allocate(Indirect * branch, int k, unsigned long blks, 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, ...@@ -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 * ext2_alloc_blocks: multiple allocate blocks needed for a branch
* @indirect_blks: the number of blocks need to allocate for indirect * @indirect_blks: the number of blocks need to allocate for indirect
* blocks * blocks
* * @blks: the number of blocks need to allocate for direct blocks
* @new_blocks: on return it will store the new block numbers for * @new_blocks: on return it will store the new block numbers for
* the indirect blocks(if needed) and the first direct block, * 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, static int ext2_alloc_blocks(struct inode *inode,
ext2_fsblk_t goal, int indirect_blks, int blks, ext2_fsblk_t goal, int indirect_blks, int blks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment