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 Feb 2022 15:35:58 +0000 (16:35 +0100)
commit8846187d2d4fd594fe5dfaee6d2abd7623481eab
treeff25a04b1740a669c3689f630ce52890df4ef622
parent712734e777a956d8550ce7f3ad9e61f7a280deef
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