btrfs: reuse existing pointers from btrfs_ioctl
authorSahil Kang <sahil.kang@asilaycomputing.com>
Wed, 5 Jan 2022 08:30:06 +0000 (00:30 -0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 7 Jan 2022 14:11:14 +0000 (15:11 +0100)
commit152adfcf88661e455c6f1dde04566ae0bcaf6823
tree5d5d2db99e8d4eec0ad275b1ab82f1dcfddaefc6
parent1a61b300c09b1d034534372349e8f9d3aba6c392
btrfs: reuse existing pointers from btrfs_ioctl

btrfs_ioctl already contains pointers to the inode and btrfs_root
structs, so we can pass them into the subfunctions instead of the
toplevel struct file.

Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c