1 #ifndef _UAPI_GENERIC_STATFS_H
2 #define _UAPI_GENERIC_STATFS_H
4 #include <linux/types.h>
8 * Most 64-bit platforms use 'long', while most 32-bit platforms use '__u32'.
9 * Yes, they differ in signedness as well as size.
10 * Special cases can override it for themselves -- except for S390x, which
11 * is just a little too special for us. And MIPS, which I'm not touching
15 #if __BITS_PER_LONG == 64
16 #define __statfs_word __kernel_long_t
18 #define __statfs_word __u32
24 __statfs_word f_bsize
;
25 __statfs_word f_blocks
;
26 __statfs_word f_bfree
;
27 __statfs_word f_bavail
;
28 __statfs_word f_files
;
29 __statfs_word f_ffree
;
30 __kernel_fsid_t f_fsid
;
31 __statfs_word f_namelen
;
32 __statfs_word f_frsize
;
33 __statfs_word f_flags
;
34 __statfs_word f_spare
[4];
38 * ARM needs to avoid the 32-bit padding at the end, for consistency
39 * between EABI and OABI
41 #ifndef ARCH_PACK_STATFS64
42 #define ARCH_PACK_STATFS64
47 __statfs_word f_bsize
;
53 __kernel_fsid_t f_fsid
;
54 __statfs_word f_namelen
;
55 __statfs_word f_frsize
;
56 __statfs_word f_flags
;
57 __statfs_word f_spare
[4];
61 * IA64 and x86_64 need to avoid the 32-bit padding at the end,
62 * to be compatible with the i386 ABI
64 #ifndef ARCH_PACK_COMPAT_STATFS64
65 #define ARCH_PACK_COMPAT_STATFS64
68 struct compat_statfs64
{
76 __kernel_fsid_t f_fsid
;
81 } ARCH_PACK_COMPAT_STATFS64
;
83 #endif /* _UAPI_GENERIC_STATFS_H */