summaryrefslogtreecommitdiff
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorSahil Kang <sahil.kang@asilaycomputing.com>2022-01-16 05:48:47 +0300
committerDavid Sterba <dsterba@suse.com>2022-03-14 15:13:46 +0300
commit9ad1230533efb6d9f5865a351eca8f0617cf5b74 (patch)
tree6945cc0186948e4406afa74c05070f32158abe3a /fs/btrfs/send.c
parentff37c89f94be14b0e22a532d1e6d57187bfd5bb8 (diff)
downloadlinux-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.c4
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;