diff options
| author | Eugene Syromiatnikov <[email protected]> | 2020-04-01 03:26:50 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-04-10 16:48:27 +0000 |
| commit | 34c51814b2b87cb2e5a98c92fe957db2ee8e27f4 (patch) | |
| tree | 610ac6b7824a2d59057faf0039ece2b05c4b0531 /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
| parent | btrfs: fix reclaim counter leak of space_info objects (diff) | |
| download | kernel-34c51814b2b87cb2e5a98c92fe957db2ee8e27f4.tar.gz kernel-34c51814b2b87cb2e5a98c92fe957db2ee8e27f4.zip | |
btrfs: re-instantiate the removed BTRFS_SUBVOL_CREATE_ASYNC definition
The commit 9c1036fdb1d1ff1b ("btrfs: Remove BTRFS_SUBVOL_CREATE_ASYNC
support") breaks strace build with the kernel headers from git:
btrfs.c: In function "btrfs_test_subvol_ioctls":
btrfs.c:531:23: error: "BTRFS_SUBVOL_CREATE_ASYNC" undeclared (first use
in this function)
vol_args_v2.flags = BTRFS_SUBVOL_CREATE_ASYNC;
Moreover, it is improper to break UAPI, strace uses the definitions to
decode ioctls that are considered part of public API.
Restore the macro definition and put it under "#ifndef __KERNEL__"
in order to prevent inadvertent in-kernel usage.
Fixes: 9c1036fdb1d1ff1b ("btrfs: Remove BTRFS_SUBVOL_CREATE_ASYNC support")
Reviewed-by: Nikolay Borisov <[email protected]>
Signed-off-by: Eugene Syromiatnikov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions
