]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
btrfs: drop unused parameter argp from btrfs_ioctl_quota_rescan_wait()
authorDavid Sterba <dsterba@suse.com>
Wed, 9 Oct 2024 14:31:28 +0000 (16:31 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:16 +0000 (14:34 +0100)
We don't need the user passed parameter, rescan is a filesystem
operation so fs_info is sufficient.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index 226c91fe31a7079079d821c9b6a44ca8fddfb75b..28b9b7fda5780be3ea0f1757d4b8c0fa7574dabc 100644 (file)
@@ -4058,8 +4058,7 @@ static long btrfs_ioctl_quota_rescan_status(struct btrfs_fs_info *fs_info,
        return 0;
 }
 
-static long btrfs_ioctl_quota_rescan_wait(struct btrfs_fs_info *fs_info,
-                                               void __user *arg)
+static long btrfs_ioctl_quota_rescan_wait(struct btrfs_fs_info *fs_info)
 {
        if (!capable(CAP_SYS_ADMIN))
                return -EPERM;
@@ -4812,7 +4811,7 @@ long btrfs_ioctl(struct file *file, unsigned int
        case BTRFS_IOC_QUOTA_RESCAN_STATUS:
                return btrfs_ioctl_quota_rescan_status(fs_info, argp);
        case BTRFS_IOC_QUOTA_RESCAN_WAIT:
-               return btrfs_ioctl_quota_rescan_wait(fs_info, argp);
+               return btrfs_ioctl_quota_rescan_wait(fs_info);
        case BTRFS_IOC_DEV_REPLACE:
                return btrfs_ioctl_dev_replace(fs_info, argp);
        case BTRFS_IOC_GET_SUPPORTED_FEATURES: