aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.h
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2024-01-09 22:28:26 +0000
committerDavid Sterba <[email protected]>2024-01-12 01:04:19 +0000
commit173431b274a9a54fc10b273b46e67f46bcf62d2e (patch)
tree8d7927d102469a50d9f468ac2a31da8a3b2a1529 /fs/btrfs/compression.h
parentbtrfs: avoid copying BTRFS_ROOT_SUBVOL_DEAD flag to snapshot of subvolume bei... (diff)
downloadkernel-173431b274a9a54fc10b273b46e67f46bcf62d2e.tar.gz
kernel-173431b274a9a54fc10b273b46e67f46bcf62d2e.zip
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 'fs/btrfs/compression.h')
0 files changed, 0 insertions, 0 deletions