diff options
| author | Qu Wenruo <[email protected]> | 2024-01-10 08:58:26 +1030 | 
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-01-12 02:04:19 +0100 | 
| commit | 173431b274a9a54fc10b273b46e67f46bcf62d2e (patch) | |
| tree | 8d7927d102469a50d9f468ac2a31da8a3b2a1529 /drivers/usb/cdns3/cdnsp-debug.h | |
| parent | 3324d0547861b16cf436d54abba7052e0c8aa9de (diff) | |
btrfs: defrag: reject unknown flags of btrfs_ioctl_defrag_range_args
Add extra sanity check for btrfs_ioctl_defrag_range_args::flags.
This is not really to enhance fuzzing tests, but as a preparation for
future expansion on btrfs_ioctl_defrag_range_args.
In the future we're going to add new members, allowing more fine tuning
for btrfs defrag.  Without the -ENONOTSUPP error, there would be no way
to detect if the kernel supports those new defrag features.
CC: [email protected] # 4.14+
Reviewed-by: Filipe Manana <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdnsp-debug.h')
0 files changed, 0 insertions, 0 deletions