|
1 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | 2 | #pragma once |
3 | 3 |
|
4 | | -/* temporary undef definitions in bits/uio-ext.h, which is included by sys/uio.h */ |
5 | | -#include <sys/uio.h> |
6 | | - |
7 | | -#define __RWF_HIPRI_SAVED__ RWF_HIPRI |
8 | | -#undef RWF_HIPRI |
9 | | -#define __RWF_DSYNC_SAVED__ RWF_DSYNC |
10 | | -#undef RWF_DSYNC |
11 | | -#define __RWF_SYNC_SAVED__ RWF_SYNC |
12 | | -#undef RWF_SYNC |
13 | | -#define __RWF_NOWAIT_SAVED__ RWF_NOWAIT |
14 | | -#undef RWF_NOWAIT |
15 | | -#define __RWF_APPEND_SAVED__ RWF_APPEND |
16 | | -#undef RWF_APPEND |
17 | | -#define __RWF_NOAPPEND_SAVED__ RWF_NOAPPEND |
18 | | -#undef RWF_NOAPPEND |
19 | | -#if defined(RWF_ATOMIC) |
20 | | -#define __RWF_ATOMIC_SAVED__ RWF_ATOMIC |
21 | | -#undef RWF_ATOMIC |
22 | | -#else |
23 | | -#define __RWF_ATOMIC_SAVED__ 0x00000040 |
24 | | -#endif |
25 | | -#if defined(RWF_DONTCACHE) |
26 | | -#define __RWF_DONTCACHE_SAVED__ RWF_DONTCACHE |
27 | | -#undef RWF_DONTCACHE |
28 | | -#else |
29 | | -#define __RWF_DONTCACHE_SAVED__ 0x00000080 |
30 | | -#endif |
31 | | - |
32 | | -#include <linux/btrfs.h> |
33 | | -#include <linux/btrfs_tree.h> |
34 | 4 | #include <linux/fs.h> |
35 | 5 |
|
36 | | -#include "macro.h" |
37 | | - |
38 | | -/* check RWF_xyz are redefined by linux/fs.h */ |
39 | | -assert_cc(RWF_HIPRI == __RWF_HIPRI_SAVED__); |
40 | | -assert_cc(RWF_DSYNC == __RWF_DSYNC_SAVED__); |
41 | | -assert_cc(RWF_SYNC == __RWF_SYNC_SAVED__); |
42 | | -assert_cc(RWF_NOWAIT == __RWF_NOWAIT_SAVED__); |
43 | | -assert_cc(RWF_APPEND == __RWF_APPEND_SAVED__); |
44 | | -assert_cc(RWF_NOAPPEND == __RWF_NOAPPEND_SAVED__); |
45 | | -assert_cc(RWF_ATOMIC == __RWF_ATOMIC_SAVED__); |
46 | | -assert_cc(RWF_DONTCACHE == __RWF_DONTCACHE_SAVED__); |
47 | | - |
48 | 6 | /* Not exposed yet. Defined at fs/ext4/ext4.h */ |
49 | 7 | #ifndef EXT4_IOC_RESIZE_FS |
50 | 8 | #define EXT4_IOC_RESIZE_FS _IOW('f', 16, __u64) |
|
0 commit comments