18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * S390 version 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Derived from "include/asm-i386/statfs.h" 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef _S390_STATFS_H 98c2ecf20Sopenharmony_ci#define _S390_STATFS_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* 128c2ecf20Sopenharmony_ci * We can't use <asm-generic/statfs.h> because in 64-bit mode 138c2ecf20Sopenharmony_ci * we mix ints of different sizes in our struct statfs. 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci#ifndef __KERNEL_STRICT_NAMES 178c2ecf20Sopenharmony_ci#include <linux/types.h> 188c2ecf20Sopenharmony_citypedef __kernel_fsid_t fsid_t; 198c2ecf20Sopenharmony_ci#endif 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cistruct statfs { 228c2ecf20Sopenharmony_ci unsigned int f_type; 238c2ecf20Sopenharmony_ci unsigned int f_bsize; 248c2ecf20Sopenharmony_ci unsigned long f_blocks; 258c2ecf20Sopenharmony_ci unsigned long f_bfree; 268c2ecf20Sopenharmony_ci unsigned long f_bavail; 278c2ecf20Sopenharmony_ci unsigned long f_files; 288c2ecf20Sopenharmony_ci unsigned long f_ffree; 298c2ecf20Sopenharmony_ci __kernel_fsid_t f_fsid; 308c2ecf20Sopenharmony_ci unsigned int f_namelen; 318c2ecf20Sopenharmony_ci unsigned int f_frsize; 328c2ecf20Sopenharmony_ci unsigned int f_flags; 338c2ecf20Sopenharmony_ci unsigned int f_spare[4]; 348c2ecf20Sopenharmony_ci}; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_cistruct statfs64 { 378c2ecf20Sopenharmony_ci unsigned int f_type; 388c2ecf20Sopenharmony_ci unsigned int f_bsize; 398c2ecf20Sopenharmony_ci unsigned long long f_blocks; 408c2ecf20Sopenharmony_ci unsigned long long f_bfree; 418c2ecf20Sopenharmony_ci unsigned long long f_bavail; 428c2ecf20Sopenharmony_ci unsigned long long f_files; 438c2ecf20Sopenharmony_ci unsigned long long f_ffree; 448c2ecf20Sopenharmony_ci __kernel_fsid_t f_fsid; 458c2ecf20Sopenharmony_ci unsigned int f_namelen; 468c2ecf20Sopenharmony_ci unsigned int f_frsize; 478c2ecf20Sopenharmony_ci unsigned int f_flags; 488c2ecf20Sopenharmony_ci unsigned int f_spare[4]; 498c2ecf20Sopenharmony_ci}; 508c2ecf20Sopenharmony_ci 518c2ecf20Sopenharmony_ci#endif 52