blob: 471eb09184d4558ae59963adac953443bc055fbe [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * 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 Woodhouse5cfba5d2008-09-01 14:12:51 +010010/*
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 Torvalds1da177e2005-04-16 15:20:36 -070014
15#ifndef __KERNEL_STRICT_NAMES
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#include <linux/types.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017typedef __kernel_fsid_t fsid_t;
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif
19
Linus Torvalds1da177e2005-04-16 15:20:36 -070020struct statfs {
Heiko Carstensb8668fd2013-04-22 10:41:27 +020021 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 Torvalds1da177e2005-04-16 15:20:36 -070028 __kernel_fsid_t f_fsid;
Heiko Carstensb8668fd2013-04-22 10:41:27 +020029 unsigned int f_namelen;
30 unsigned int f_frsize;
31 unsigned int f_flags;
32 unsigned int f_spare[4];
Linus Torvalds1da177e2005-04-16 15:20:36 -070033};
34
35struct statfs64 {
Heiko Carstensb8668fd2013-04-22 10:41:27 +020036 unsigned int f_type;
37 unsigned int f_bsize;
Heiko Carstens4e078142014-01-21 17:31:10 +010038 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 Torvalds1da177e2005-04-16 15:20:36 -070043 __kernel_fsid_t f_fsid;
Heiko Carstensb8668fd2013-04-22 10:41:27 +020044 unsigned int f_namelen;
45 unsigned int f_frsize;
46 unsigned int f_flags;
47 unsigned int f_spare[4];
Linus Torvalds1da177e2005-04-16 15:20:36 -070048};
49
Linus Torvalds1da177e2005-04-16 15:20:36 -070050#endif