diff options
author | Sahil Kang <sahil.kang@asilaycomputing.com> | 2022-01-16 05:48:47 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-03-14 15:13:46 +0300 |
commit | 9ad1230533efb6d9f5865a351eca8f0617cf5b74 (patch) | |
tree | 6945cc0186948e4406afa74c05070f32158abe3a /fs/btrfs/send.c | |
parent | ff37c89f94be14b0e22a532d1e6d57187bfd5bb8 (diff) | |
download | linux-9ad1230533efb6d9f5865a351eca8f0617cf5b74.tar.xz |
btrfs: reuse existing inode from btrfs_ioctl
btrfs_ioctl extracts inode from file so we can pass that into the
callbacks.
Signed-off-by: Sahil Kang <sahil.kang@asilaycomputing.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r-- | fs/btrfs/send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 201eb2628aea..2845febb711b 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -7477,10 +7477,10 @@ static void dedupe_in_progress_warn(const struct btrfs_root *root) root->root_key.objectid, root->dedupe_in_progress); } -long btrfs_ioctl_send(struct file *mnt_file, struct btrfs_ioctl_send_args *arg) +long btrfs_ioctl_send(struct inode *inode, struct btrfs_ioctl_send_args *arg) { int ret = 0; - struct btrfs_root *send_root = BTRFS_I(file_inode(mnt_file))->root; + struct btrfs_root *send_root = BTRFS_I(inode)->root; struct btrfs_fs_info *fs_info = send_root->fs_info; struct btrfs_root *clone_root; struct send_ctx *sctx = NULL; |