diff options
-rw-r--r-- | arch/s390/include/asm/compat.h | 37 | ||||
-rw-r--r-- | arch/s390/include/uapi/asm/statfs.h | 63 |
2 files changed, 48 insertions, 52 deletions
diff --git a/arch/s390/include/asm/compat.h b/arch/s390/include/asm/compat.h index da3df9f6eded..c1e7c646727c 100644 --- a/arch/s390/include/asm/compat.h +++ b/arch/s390/include/asm/compat.h | |||
@@ -140,18 +140,33 @@ struct compat_flock64 { | |||
140 | }; | 140 | }; |
141 | 141 | ||
142 | struct compat_statfs { | 142 | struct compat_statfs { |
143 | s32 f_type; | 143 | u32 f_type; |
144 | s32 f_bsize; | 144 | u32 f_bsize; |
145 | s32 f_blocks; | 145 | u32 f_blocks; |
146 | s32 f_bfree; | 146 | u32 f_bfree; |
147 | s32 f_bavail; | 147 | u32 f_bavail; |
148 | s32 f_files; | 148 | u32 f_files; |
149 | s32 f_ffree; | 149 | u32 f_ffree; |
150 | compat_fsid_t f_fsid; | 150 | compat_fsid_t f_fsid; |
151 | s32 f_namelen; | 151 | u32 f_namelen; |
152 | s32 f_frsize; | 152 | u32 f_frsize; |
153 | s32 f_flags; | 153 | u32 f_flags; |
154 | s32 f_spare[4]; | 154 | u32 f_spare[4]; |
155 | }; | ||
156 | |||
157 | struct compat_statfs64 { | ||
158 | u32 f_type; | ||
159 | u32 f_bsize; | ||
160 | u64 f_blocks; | ||
161 | u64 f_bfree; | ||
162 | u64 f_bavail; | ||
163 | u64 f_files; | ||
164 | u64 f_ffree; | ||
165 | compat_fsid_t f_fsid; | ||
166 | u32 f_namelen; | ||
167 | u32 f_frsize; | ||
168 | u32 f_flags; | ||
169 | u32 f_spare[4]; | ||
155 | }; | 170 | }; |
156 | 171 | ||
157 | #define COMPAT_RLIM_OLD_INFINITY 0x7fffffff | 172 | #define COMPAT_RLIM_OLD_INFINITY 0x7fffffff |
diff --git a/arch/s390/include/uapi/asm/statfs.h b/arch/s390/include/uapi/asm/statfs.h index 5acca0a34c20..a61d538756f2 100644 --- a/arch/s390/include/uapi/asm/statfs.h +++ b/arch/s390/include/uapi/asm/statfs.h | |||
@@ -7,9 +7,6 @@ | |||
7 | #ifndef _S390_STATFS_H | 7 | #ifndef _S390_STATFS_H |
8 | #define _S390_STATFS_H | 8 | #define _S390_STATFS_H |
9 | 9 | ||
10 | #ifndef __s390x__ | ||
11 | #include <asm-generic/statfs.h> | ||
12 | #else | ||
13 | /* | 10 | /* |
14 | * We can't use <asm-generic/statfs.h> because in 64-bit mode | 11 | * We can't use <asm-generic/statfs.h> because in 64-bit mode |
15 | * we mix ints of different sizes in our struct statfs. | 12 | * we mix ints of different sizes in our struct statfs. |
@@ -21,49 +18,33 @@ typedef __kernel_fsid_t fsid_t; | |||
21 | #endif | 18 | #endif |
22 | 19 | ||
23 | struct statfs { | 20 | struct statfs { |
24 | int f_type; | 21 | unsigned int f_type; |
25 | int f_bsize; | 22 | unsigned int f_bsize; |
26 | long f_blocks; | 23 | unsigned long f_blocks; |
27 | long f_bfree; | 24 | unsigned long f_bfree; |
28 | long f_bavail; | 25 | unsigned long f_bavail; |
29 | long f_files; | 26 | unsigned long f_files; |
30 | long f_ffree; | 27 | unsigned long f_ffree; |
31 | __kernel_fsid_t f_fsid; | 28 | __kernel_fsid_t f_fsid; |
32 | int f_namelen; | 29 | unsigned int f_namelen; |
33 | int f_frsize; | 30 | unsigned int f_frsize; |
34 | int f_flags; | 31 | unsigned int f_flags; |
35 | int f_spare[4]; | 32 | unsigned int f_spare[4]; |
36 | }; | 33 | }; |
37 | 34 | ||
38 | struct statfs64 { | 35 | struct statfs64 { |
39 | int f_type; | 36 | unsigned int f_type; |
40 | int f_bsize; | 37 | unsigned int f_bsize; |
41 | long f_blocks; | 38 | unsigned long f_blocks; |
42 | long f_bfree; | 39 | unsigned long f_bfree; |
43 | long f_bavail; | 40 | unsigned long f_bavail; |
44 | long f_files; | 41 | unsigned long f_files; |
45 | long f_ffree; | 42 | unsigned long f_ffree; |
46 | __kernel_fsid_t f_fsid; | 43 | __kernel_fsid_t f_fsid; |
47 | int f_namelen; | 44 | unsigned int f_namelen; |
48 | int f_frsize; | 45 | unsigned int f_frsize; |
49 | int f_flags; | 46 | unsigned int f_flags; |
50 | int f_spare[4]; | 47 | unsigned int f_spare[4]; |
51 | }; | 48 | }; |
52 | 49 | ||
53 | struct compat_statfs64 { | ||
54 | __u32 f_type; | ||
55 | __u32 f_bsize; | ||
56 | __u64 f_blocks; | ||
57 | __u64 f_bfree; | ||
58 | __u64 f_bavail; | ||
59 | __u64 f_files; | ||
60 | __u64 f_ffree; | ||
61 | __kernel_fsid_t f_fsid; | ||
62 | __u32 f_namelen; | ||
63 | __u32 f_frsize; | ||
64 | __u32 f_flags; | ||
65 | __u32 f_spare[4]; | ||
66 | }; | ||
67 | |||
68 | #endif /* __s390x__ */ | ||
69 | #endif | 50 | #endif |