diff options
Diffstat (limited to 'arch/s390/include/asm/statfs.h')
-rw-r--r-- | arch/s390/include/asm/statfs.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/arch/s390/include/asm/statfs.h b/arch/s390/include/asm/statfs.h new file mode 100644 index 000000000000..099a45579190 --- /dev/null +++ b/arch/s390/include/asm/statfs.h | |||
@@ -0,0 +1,71 @@ | |||
1 | /* | ||
2 | * include/asm-s390/statfs.h | ||
3 | * | ||
4 | * S390 version | ||
5 | * | ||
6 | * Derived from "include/asm-i386/statfs.h" | ||
7 | */ | ||
8 | |||
9 | #ifndef _S390_STATFS_H | ||
10 | #define _S390_STATFS_H | ||
11 | |||
12 | #ifndef __s390x__ | ||
13 | #include <asm-generic/statfs.h> | ||
14 | #else | ||
15 | |||
16 | #ifndef __KERNEL_STRICT_NAMES | ||
17 | |||
18 | #include <linux/types.h> | ||
19 | |||
20 | typedef __kernel_fsid_t fsid_t; | ||
21 | |||
22 | #endif | ||
23 | |||
24 | /* | ||
25 | * This is ugly -- we're already 64-bit clean, so just duplicate the | ||
26 | * definitions. | ||
27 | */ | ||
28 | struct statfs { | ||
29 | int f_type; | ||
30 | int f_bsize; | ||
31 | long f_blocks; | ||
32 | long f_bfree; | ||
33 | long f_bavail; | ||
34 | long f_files; | ||
35 | long f_ffree; | ||
36 | __kernel_fsid_t f_fsid; | ||
37 | int f_namelen; | ||
38 | int f_frsize; | ||
39 | int f_spare[5]; | ||
40 | }; | ||
41 | |||
42 | struct statfs64 { | ||
43 | int f_type; | ||
44 | int f_bsize; | ||
45 | long f_blocks; | ||
46 | long f_bfree; | ||
47 | long f_bavail; | ||
48 | long f_files; | ||
49 | long f_ffree; | ||
50 | __kernel_fsid_t f_fsid; | ||
51 | int f_namelen; | ||
52 | int f_frsize; | ||
53 | int f_spare[5]; | ||
54 | }; | ||
55 | |||
56 | struct compat_statfs64 { | ||
57 | __u32 f_type; | ||
58 | __u32 f_bsize; | ||
59 | __u64 f_blocks; | ||
60 | __u64 f_bfree; | ||
61 | __u64 f_bavail; | ||
62 | __u64 f_files; | ||
63 | __u64 f_ffree; | ||
64 | __kernel_fsid_t f_fsid; | ||
65 | __u32 f_namelen; | ||
66 | __u32 f_frsize; | ||
67 | __u32 f_spare[5]; | ||
68 | }; | ||
69 | |||
70 | #endif /* __s390x__ */ | ||
71 | #endif | ||