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)
commit23c24ef8e4181ba5cb56316a17b920deedbbb109
treea24d42a9b693cffef706c44774042812dea8c2eb
parent70dc55f428dd3bf10421ec65f9a30aef01ea5007
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