diff options
author | Christoph Hellwig <hch@lst.de> | 2010-07-07 18:53:25 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:48:44 -0400 |
commit | 365b18189789bfa1acd9939e6312b8a4b4577b28 (patch) | |
tree | ffb71da8e11c7751002d018d0b44c41776bc92a3 /include/asm-generic/statfs.h | |
parent | ebabe9a9001af0af56c0c2780ca1576246e7a74b (diff) | |
download | kernel_samsung_crespo-365b18189789bfa1acd9939e6312b8a4b4577b28.zip kernel_samsung_crespo-365b18189789bfa1acd9939e6312b8a4b4577b28.tar.gz kernel_samsung_crespo-365b18189789bfa1acd9939e6312b8a4b4577b28.tar.bz2 |
add f_flags to struct statfs(64)
Add a flags field to help glibc implementing statvfs(3) efficiently.
We copy the flag values from glibc, and add a new ST_VALID flag to
denote that f_flags is implemented.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/asm-generic/statfs.h')
-rw-r--r-- | include/asm-generic/statfs.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-generic/statfs.h b/include/asm-generic/statfs.h index 3b4fb3e..0fd28e0 100644 --- a/include/asm-generic/statfs.h +++ b/include/asm-generic/statfs.h @@ -33,7 +33,8 @@ struct statfs { __kernel_fsid_t f_fsid; __statfs_word f_namelen; __statfs_word f_frsize; - __statfs_word f_spare[5]; + __statfs_word f_flags; + __statfs_word f_spare[4]; }; /* @@ -55,7 +56,8 @@ struct statfs64 { __kernel_fsid_t f_fsid; __statfs_word f_namelen; __statfs_word f_frsize; - __statfs_word f_spare[5]; + __statfs_word f_flags; + __statfs_word f_spare[4]; } ARCH_PACK_STATFS64; /* @@ -77,7 +79,8 @@ struct compat_statfs64 { __kernel_fsid_t f_fsid; __u32 f_namelen; __u32 f_frsize; - __u32 f_spare[5]; + __u32 f_flags; + __u32 f_spare[4]; } ARCH_PACK_COMPAT_STATFS64; #endif |