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, 28 Feb 2022 15:19:47 +0000 (16:19 +0100)
commit8a8108db111215f0ffdf69e75a43bef68323c908
tree6e1667be1ce81fab67470ce47cafd2b0d1596731
parentb9682d0e640d86de7645587310eae79b6a1e6dbd
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