Merge branch 'for-2.6.28' of git://linux-nfs.org/~bfields/linux
[linux-2.6] / arch / s390 / include / asm / statfs.h
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_spare[5];
37 };
38
39 struct statfs64 {
40         int  f_type;
41         int  f_bsize;
42         long f_blocks;
43         long f_bfree;
44         long f_bavail;
45         long f_files;
46         long f_ffree;
47         __kernel_fsid_t f_fsid;
48         int  f_namelen;
49         int  f_frsize;
50         int  f_spare[5];
51 };
52
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_spare[5];
65 };
66
67 #endif /* __s390x__ */
68 #endif