xref: /linux/arch/s390/include/uapi/asm/statfs.h (revision 6fdcba32711044c35c0e1b094cbd8f3f0b4472c9)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  *  S390 version
4  *
5  *  Derived from "include/asm-i386/statfs.h"
6  */
7 
8 #ifndef _S390_STATFS_H
9 #define _S390_STATFS_H
10 
11 /*
12  * We can't use <asm-generic/statfs.h> because in 64-bit mode
13  * we mix ints of different sizes in our struct statfs.
14  */
15 
16 #ifndef __KERNEL_STRICT_NAMES
17 #include <linux/types.h>
18 typedef __kernel_fsid_t	fsid_t;
19 #endif
20 
21 struct statfs {
22 	unsigned int	f_type;
23 	unsigned int	f_bsize;
24 	unsigned long	f_blocks;
25 	unsigned long	f_bfree;
26 	unsigned long	f_bavail;
27 	unsigned long	f_files;
28 	unsigned long	f_ffree;
29 	__kernel_fsid_t f_fsid;
30 	unsigned int	f_namelen;
31 	unsigned int	f_frsize;
32 	unsigned int	f_flags;
33 	unsigned int	f_spare[4];
34 };
35 
36 struct statfs64 {
37 	unsigned int	f_type;
38 	unsigned int	f_bsize;
39 	unsigned long long f_blocks;
40 	unsigned long long f_bfree;
41 	unsigned long long f_bavail;
42 	unsigned long long f_files;
43 	unsigned long long f_ffree;
44 	__kernel_fsid_t f_fsid;
45 	unsigned int	f_namelen;
46 	unsigned int	f_frsize;
47 	unsigned int	f_flags;
48 	unsigned int	f_spare[4];
49 };
50 
51 #endif
52