Skip to content

Commit

Permalink
ext2: Adjust the comment of function ext2_alloc_branch
Browse files Browse the repository at this point in the history
The name of argument is error in the header comment.
@num should be @indirect_blks.
At the same time, there was a lack of description of the two parameters
@blks and @goal.
This commit therefore fixes this header comment.

Signed-off-by: Shuning Zhang <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
  • Loading branch information
Shuning Zhang authored and jankara committed Mar 26, 2019
1 parent a768a9a commit 1206d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fs/ext2/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,9 @@ static int ext2_alloc_blocks(struct inode *inode,
/**
* ext2_alloc_branch - allocate and set up a chain of blocks.
* @inode: owner
* @num: depth of the chain (number of blocks to allocate)
* @indirect_blks: depth of the chain (number of blocks to allocate)
* @blks: number of allocated direct blocks
* @goal: preferred place for allocation
* @offsets: offsets (in the blocks) to store the pointers to next.
* @branch: place to store the chain in.
*
Expand Down

0 comments on commit 1206d02

Please sign in to comment.