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  * We can't use <asm-generic/statfs.h> because in 64-bit mode
17  * we mix ints of different sizes in our struct statfs.
18  */
19 
20 #ifndef __KERNEL_STRICT_NAMES
21 #include <linux/types.h>
22 typedef __kernel_fsid_t	fsid_t;
23 #endif
24 
25 struct statfs {
26 	int  f_type;
27 	int  f_bsize;
28 	long f_blocks;
29 	long f_bfree;
30 	long f_bavail;
31 	long f_files;
32 	long f_ffree;
33 	__kernel_fsid_t f_fsid;
34 	int  f_namelen;
35 	int  f_frsize;
36 	int  f_flags;
37 	int  f_spare[4];
38 };
39 
40 struct statfs64 {
41 	int  f_type;
42 	int  f_bsize;
43 	long f_blocks;
44 	long f_bfree;
45 	long f_bavail;
46 	long f_files;
47 	long f_ffree;
48 	__kernel_fsid_t f_fsid;
49 	int  f_namelen;
50 	int  f_frsize;
51 	int  f_flags;
52 	int  f_spare[4];
53 };
54 
55 struct compat_statfs64 {
56 	__u32 f_type;
57 	__u32 f_bsize;
58 	__u64 f_blocks;
59 	__u64 f_bfree;
60 	__u64 f_bavail;
61 	__u64 f_files;
62 	__u64 f_ffree;
63 	__kernel_fsid_t f_fsid;
64 	__u32 f_namelen;
65 	__u32 f_frsize;
66 	__u32 f_flags;
67 	__u32 f_spare[4];
68 };
69 
70 #endif /* __s390x__ */
71 #endif
72