Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
statfs.h
Go to the documentation of this file.
1 /*
2  * S390 version
3  *
4  * Derived from "include/asm-i386/statfs.h"
5  */
6 
7 #ifndef _S390_STATFS_H
8 #define _S390_STATFS_H
9 
10 #ifndef __s390x__
11 #include <asm-generic/statfs.h>
12 #else
13 /*
14  * We can't use <asm-generic/statfs.h> because in 64-bit mode
15  * we mix ints of different sizes in our struct statfs.
16  */
17 
18 #ifndef __KERNEL_STRICT_NAMES
19 #include <linux/types.h>
20 typedef __kernel_fsid_t fsid_t;
21 #endif
22 
23 struct statfs {
24  int f_type;
25  int f_bsize;
26  long f_blocks;
27  long f_bfree;
28  long f_bavail;
29  long f_files;
30  long f_ffree;
32  int f_namelen;
33  int f_frsize;
34  int f_flags;
35  int f_spare[4];
36 };
37 
38 struct statfs64 {
39  int f_type;
40  int f_bsize;
41  long f_blocks;
42  long f_bfree;
43  long f_bavail;
44  long f_files;
45  long f_ffree;
47  int f_namelen;
48  int f_frsize;
49  int f_flags;
50  int f_spare[4];
51 };
52 
53 struct compat_statfs64 {
54  __u32 f_type;
55  __u32 f_bsize;
57  __u64 f_bfree;
59  __u64 f_files;
60  __u64 f_ffree;
64  __u32 f_flags;
65  __u32 f_spare[4];
66 };
67 
68 #endif /* __s390x__ */
69 #endif