]> 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)
commit1b2f018ccbb32144df3adb1811bc302f612bf655
treea24d42a9b693cffef706c44774042812dea8c2eb
parent2606cba0e1584e8abc8eed02c5e880f67fbf7587
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