Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
David Woodhouse | 5cfba5d | 2008-09-01 14:12:51 +0100 | [diff] [blame] | 10 | /* |
| 11 | * We can't use <asm-generic/statfs.h> because in 64-bit mode |
| 12 | * we mix ints of different sizes in our struct statfs. |
| 13 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
| 15 | #ifndef __KERNEL_STRICT_NAMES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | typedef __kernel_fsid_t fsid_t; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #endif |
| 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | struct statfs { |
Heiko Carstens | b8668fd | 2013-04-22 10:41:27 +0200 | [diff] [blame] | 21 | unsigned int f_type; |
| 22 | unsigned int f_bsize; |
| 23 | unsigned long f_blocks; |
| 24 | unsigned long f_bfree; |
| 25 | unsigned long f_bavail; |
| 26 | unsigned long f_files; |
| 27 | unsigned long f_ffree; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 28 | __kernel_fsid_t f_fsid; |
Heiko Carstens | b8668fd | 2013-04-22 10:41:27 +0200 | [diff] [blame] | 29 | unsigned int f_namelen; |
| 30 | unsigned int f_frsize; |
| 31 | unsigned int f_flags; |
| 32 | unsigned int f_spare[4]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | struct statfs64 { |
Heiko Carstens | b8668fd | 2013-04-22 10:41:27 +0200 | [diff] [blame] | 36 | unsigned int f_type; |
| 37 | unsigned int f_bsize; |
Heiko Carstens | 4e07814 | 2014-01-21 17:31:10 +0100 | [diff] [blame] | 38 | unsigned long long f_blocks; |
| 39 | unsigned long long f_bfree; |
| 40 | unsigned long long f_bavail; |
| 41 | unsigned long long f_files; |
| 42 | unsigned long long f_ffree; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | __kernel_fsid_t f_fsid; |
Heiko Carstens | b8668fd | 2013-04-22 10:41:27 +0200 | [diff] [blame] | 44 | unsigned int f_namelen; |
| 45 | unsigned int f_frsize; |
| 46 | unsigned int f_flags; |
| 47 | unsigned int f_spare[4]; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | }; |
| 49 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | #endif |