aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/uapi/asm/statfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/s390/include/uapi/asm/statfs.h')
-rw-r--r--arch/s390/include/uapi/asm/statfs.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/statfs.h b/arch/s390/include/uapi/asm/statfs.h
new file mode 100644
index 000000000000..5acca0a34c20
--- /dev/null
+++ b/arch/s390/include/uapi/asm/statfs.h
@@ -0,0 +1,69 @@
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>
20typedef __kernel_fsid_t fsid_t;
21#endif
22
23struct 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;
31 __kernel_fsid_t f_fsid;
32 int f_namelen;
33 int f_frsize;
34 int f_flags;
35 int f_spare[4];
36};
37
38struct 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;
46 __kernel_fsid_t f_fsid;
47 int f_namelen;
48 int f_frsize;
49 int f_flags;
50 int f_spare[4];
51};
52
53struct 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