]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
btrfs: correct wrong comment about magic number of index_cnt
authorSu Yue <suy.fnst@cn.fujitsu.com>
Fri, 12 Jan 2018 03:08:02 +0000 (11:08 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:21 +0000 (16:08 +0100)
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>
fs/btrfs/inode.c

index eebfe2615428084ec14553776af3e098c2bbea98..633b83b709a1dd9319346adf698839d578d1c67a 100644 (file)
@@ -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;