Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 |
David Woodhouse | 5cfba5d | 2008-09-01 14:12:51 +0100 | [diff] [blame] | 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 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | |
| 20 | #ifndef __KERNEL_STRICT_NAMES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | typedef __kernel_fsid_t fsid_t; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | #endif |
| 24 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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; |
Christoph Hellwig | 365b181 | 2010-07-07 18:53:25 +0200 | [diff] [blame] | 36 | int f_flags; |
| 37 | int f_spare[4]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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; |
Christoph Hellwig | 365b181 | 2010-07-07 18:53:25 +0200 | [diff] [blame] | 51 | int f_flags; |
| 52 | int f_spare[4]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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; |
Christoph Hellwig | 365b181 | 2010-07-07 18:53:25 +0200 | [diff] [blame] | 66 | __u32 f_flags; |
| 67 | __u32 f_spare[4]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | #endif /* __s390x__ */ |
| 71 | #endif |