ext2: Adjust the comment of function ext2_alloc_branch
authorShuning Zhang <sunny.s.zhang@oracle.com>
Wed, 6 Mar 2019 01:47:35 +0000 (09:47 +0800)
committerJan Kara <jack@suse.cz>
Tue, 26 Mar 2019 10:21:23 +0000 (11:21 +0100)
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 <sunny.s.zhang@oracle.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/inode.c

index c27c27300d95894c9de2ae0614e36c3df11bad47..e474127dd255605df4ab498997111ac1cf63fafa 100644 (file)
@@ -451,7 +451,9 @@ failed_out:
 /**
  *     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.
  *