diff options
author | Jeff Mahoney <jeffm@suse.com> | 2016-06-09 21:38:35 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-07-26 07:53:16 -0400 |
commit | 3cdde2240d4533ff71fbb8dc9c32d5d57d3cdeed (patch) | |
tree | 05a138f31bd51026ecb338cd8720bfbf5f863b25 /fs/btrfs/ioctl.c | |
parent | bc074524e123ded281cde25ebc5661910f9679e3 (diff) |
btrfs: btrfs_test_opt and friends should take a btrfs_fs_info
btrfs_test_opt and friends only use the root pointer to access
the fs_info. Let's pass the fs_info directly in preparation to
eliminate similar patterns all over btrfs.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r-- | fs/btrfs/ioctl.c | 2 |
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 | /* |