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>
Mon, 14 Mar 2022 12:13:46 +0000 (13:13 +0100)
commitdc408ccdf01d3d37ce65aca5dfea0be71d0cc6ec
tree033900b9ea89ff7b23520d4aecf0e455bcecd4ab
parentc816d705b9dbc5ca870bb23e49aa9715da8384b9
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