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 205cd011d2f3..f0a74f014748 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2547,7 +2547,7 @@ static long btrfs_ioctl_scrub(struct btrfs_root *root, void __user *arg)
2547 return PTR_ERR(sa); 2547 return PTR_ERR(sa);
2548 2548
2549 ret = btrfs_scrub_dev(root, sa->devid, sa->start, sa->end, 2549 ret = btrfs_scrub_dev(root, sa->devid, sa->start, sa->end,
2550 &sa->progress); 2550 &sa->progress, sa->flags & BTRFS_SCRUB_READONLY);
2551 2551
2552 if (copy_to_user(arg, sa, sizeof(*sa))) 2552 if (copy_to_user(arg, sa, sizeof(*sa)))
2553 ret = -EFAULT; 2553 ret = -EFAULT;