Skip to content

Commit df6703e

Browse files
Su Yuekdave
authored andcommitted
btrfs: correct wrong comment about magic number of index_cnt
There is no function named btrfs_get_inode_index_count. Explanation for magic number index_cnt=2 in btrfs_new_inode() is actually located in btrfs_set_inode_index_count(). So replace 'btrfs_get_inode_index_count' in the comment by 'btrfs_set_inode_index_count'. Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent d2560eb commit df6703e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/btrfs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6315,7 +6315,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
63156315
}
63166316
/*
63176317
* index_cnt is ignored for everything but a dir,
6318-
* btrfs_get_inode_index_count has an explanation for the magic
6318+
* btrfs_set_inode_index_count has an explanation for the magic
63196319
* number
63206320
*/
63216321
BTRFS_I(inode)->index_cnt = 2;

0 commit comments

Comments
 (0)