aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
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 05173563e4a6..ffb1628cd1a1 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2406,7 +2406,7 @@ static noinline int btrfs_ioctl_snap_destroy(struct file *file,
2406 * rmdir(2). 2406 * rmdir(2).
2407 */ 2407 */
2408 err = -EPERM; 2408 err = -EPERM;
2409 if (!btrfs_test_opt(root, USER_SUBVOL_RM_ALLOWED)) 2409 if (!btrfs_test_opt(root->fs_info, USER_SUBVOL_RM_ALLOWED))
2410 goto out_dput; 2410 goto out_dput;
2411 2411
2412 /* 2412 /*