summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-27 02:41:32 +0200
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:53 +0100
commit3c4f91e23a87a486426db5e481ed315b1b2640f1 (patch)
treeb1ee3475e0f5bf0b1bb771470c81a5dd3b4307fc /fs/btrfs/ioctl.c
parentbtrfs: pass btrfs_inode to __unlink_start_trans (diff)
downloadlinux-3c4f91e23a87a486426db5e481ed315b1b2640f1.tar.xz
linux-3c4f91e23a87a486426db5e481ed315b1b2640f1.zip
btrfs: pass btrfs_inode to btrfs_delete_subvolume
The function is for internal interfaces so we should use the btrfs_inode. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 1832d3011d12..7a9e697d9931 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2529,7 +2529,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
}
btrfs_inode_lock(BTRFS_I(inode), 0);
- err = btrfs_delete_subvolume(dir, dentry);
+ err = btrfs_delete_subvolume(BTRFS_I(dir), dentry);
btrfs_inode_unlock(BTRFS_I(inode), 0);
if (!err)
d_delete_notify(dir, dentry);