19807f759SDavid Howells /* 29807f759SDavid Howells * S390 version 39807f759SDavid Howells * 49807f759SDavid Howells * Derived from "include/asm-i386/statfs.h" 59807f759SDavid Howells */ 69807f759SDavid Howells 79807f759SDavid Howells #ifndef _S390_STATFS_H 89807f759SDavid Howells #define _S390_STATFS_H 99807f759SDavid Howells 109807f759SDavid Howells #ifndef __s390x__ 119807f759SDavid Howells #include <asm-generic/statfs.h> 129807f759SDavid Howells #else 139807f759SDavid Howells /* 149807f759SDavid Howells * We can't use <asm-generic/statfs.h> because in 64-bit mode 159807f759SDavid Howells * we mix ints of different sizes in our struct statfs. 169807f759SDavid Howells */ 179807f759SDavid Howells 189807f759SDavid Howells #ifndef __KERNEL_STRICT_NAMES 199807f759SDavid Howells #include <linux/types.h> 209807f759SDavid Howells typedef __kernel_fsid_t fsid_t; 219807f759SDavid Howells #endif 229807f759SDavid Howells 239807f759SDavid Howells struct statfs { 249807f759SDavid Howells int f_type; 259807f759SDavid Howells int f_bsize; 269807f759SDavid Howells long f_blocks; 279807f759SDavid Howells long f_bfree; 289807f759SDavid Howells long f_bavail; 299807f759SDavid Howells long f_files; 309807f759SDavid Howells long f_ffree; 319807f759SDavid Howells __kernel_fsid_t f_fsid; 329807f759SDavid Howells int f_namelen; 339807f759SDavid Howells int f_frsize; 349807f759SDavid Howells int f_flags; 359807f759SDavid Howells int f_spare[4]; 369807f759SDavid Howells }; 379807f759SDavid Howells 389807f759SDavid Howells struct statfs64 { 399807f759SDavid Howells int f_type; 409807f759SDavid Howells int f_bsize; 419807f759SDavid Howells long f_blocks; 429807f759SDavid Howells long f_bfree; 439807f759SDavid Howells long f_bavail; 449807f759SDavid Howells long f_files; 459807f759SDavid Howells long f_ffree; 469807f759SDavid Howells __kernel_fsid_t f_fsid; 479807f759SDavid Howells int f_namelen; 489807f759SDavid Howells int f_frsize; 499807f759SDavid Howells int f_flags; 509807f759SDavid Howells int f_spare[4]; 519807f759SDavid Howells }; 529807f759SDavid Howells 539807f759SDavid Howells struct compat_statfs64 { 549807f759SDavid Howells __u32 f_type; 559807f759SDavid Howells __u32 f_bsize; 569807f759SDavid Howells __u64 f_blocks; 579807f759SDavid Howells __u64 f_bfree; 589807f759SDavid Howells __u64 f_bavail; 599807f759SDavid Howells __u64 f_files; 609807f759SDavid Howells __u64 f_ffree; 619807f759SDavid Howells __kernel_fsid_t f_fsid; 629807f759SDavid Howells __u32 f_namelen; 639807f759SDavid Howells __u32 f_frsize; 649807f759SDavid Howells __u32 f_flags; 659807f759SDavid Howells __u32 f_spare[4]; 669807f759SDavid Howells }; 679807f759SDavid Howells 689807f759SDavid Howells #endif /* __s390x__ */ 699807f759SDavid Howells #endif 70