btrfs: use BTRFS_DIR_START_INDEX at btrfs_create_new_inode()
authorFilipe Manana <fdmanana@suse.com>
Wed, 13 Apr 2022 15:20:21 +0000 (16:20 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:13 +0000 (17:03 +0200)
commit490243884e02676dfd875382cfb58077d71a3b4e
treedf54c607a70df026b4db433bb80c98bd6f71b14c
parentc0111c44174a82f81c89ea79e70f2e95ba42c73f
btrfs: use BTRFS_DIR_START_INDEX at btrfs_create_new_inode()

We are still using the magic value of 2 at btrfs_create_new_inode(), but
there's now a constant for that, named BTRFS_DIR_START_INDEX, which was
introduced in commit 528ee697126fd ("btrfs: put initial index value of a
directory in a constant"). So change that to use the constant.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c