]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't pass parent objectid to btrfs_new_inode() explicitly
authorOmar Sandoval <osandov@fb.com>
Thu, 10 Mar 2022 01:31:40 +0000 (17:31 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:06 +0000 (17:03 +0200)
commitf09a199396ba067ae075018fd74ba8995fa73cf9
treea24d42a9b693cffef706c44774042812dea8c2eb
parentc5897c0873e2bc74dac68fd3747cb936f7bb429e
btrfs: don't pass parent objectid to btrfs_new_inode() explicitly

For everything other than a subvolume root inode, we get the parent
objectid from the parent directory. For the subvolume root inode, the
parent objectid is the same as the inode's objectid. We can find this
within btrfs_new_inode() instead of passing it.

Reviewed-by: Sweet Tea Dorminy <sweettea-kernel@dorminy.me>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c