Skip to content

Commit cf1013f

Browse files
cgxu519jankara
authored andcommitted
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/[email protected] Signed-off-by: Chengguang Xu <[email protected]> Signed-off-by: Jan Kara <[email protected]>
1 parent 30b42a7 commit cf1013f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

fs/ext2/inode.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,7 @@ static inline ext2_fsblk_t ext2_find_goal(struct inode *inode, long block,
356356
* @blks: number of data blocks to be mapped.
357357
* @blocks_to_boundary: the offset in the indirect block
358358
*
359-
* return the total number of blocks to be allocate, including the
360-
* direct and indirect blocks.
359+
* return the number of direct blocks to allocate.
361360
*/
362361
static int
363362
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,
390389
* ext2_alloc_blocks: multiple allocate blocks needed for a branch
391390
* @indirect_blks: the number of blocks need to allocate for indirect
392391
* blocks
393-
*
392+
* @blks: the number of blocks need to allocate for direct blocks
394393
* @new_blocks: on return it will store the new block numbers for
395394
* the indirect blocks(if needed) and the first direct block,
396-
* @blks: on return it will store the total number of allocated
397-
* direct blocks
398395
*/
399396
static int ext2_alloc_blocks(struct inode *inode,
400397
ext2_fsblk_t goal, int indirect_blks, int blks,

0 commit comments

Comments
 (0)