summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorSu Yue <suy.fnst@cn.fujitsu.com>2018-01-12 11:08:02 +0800
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:21 +0100
commitdf6703e15c493fcc7b7f7576dff17d82e460945b (patch)
tree0a95d206640cd2faf1ae53f9f0fcba838d2d4d32 /fs/btrfs
parentd2560ebd231e1f8f6f125d1721cf14bc8d5422b3 (diff)
downloadlinux-df6703e15c493fcc7b7f7576dff17d82e460945b.tar.bz2
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index eebfe2615428..633b83b709a1 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -6315,7 +6315,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans,
}
/*
* index_cnt is ignored for everything but a dir,
- * btrfs_get_inode_index_count has an explanation for the magic
+ * btrfs_set_inode_index_count has an explanation for the magic
* number
*/
BTRFS_I(inode)->index_cnt = 2;