The f_flags field has been supported since Linux 2.6.36. Signed-off-by: Christoph Hellwig <hch@xxxxxx> --- configure.ac | 1 - include/builddefs.in | 1 - io/Makefile | 4 ---- io/stat.c | 2 -- m4/package_libcdev.m4 | 14 -------------- 5 files changed, 22 deletions(-) diff --git a/configure.ac b/configure.ac index ce9a8a935..32efad760 100644 --- a/configure.ac +++ b/configure.ac @@ -168,7 +168,6 @@ AC_NEED_INTERNAL_FSXATTR AC_NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG AC_NEED_INTERNAL_FSCRYPT_POLICY_V2 AC_HAVE_GETFSMAP -AC_HAVE_STATFS_FLAGS AC_HAVE_MAP_SYNC AC_HAVE_DEVMAPPER AC_HAVE_MALLINFO diff --git a/include/builddefs.in b/include/builddefs.in index b84369ea7..c359cde45 100644 --- a/include/builddefs.in +++ b/include/builddefs.in @@ -96,7 +96,6 @@ NEED_INTERNAL_FSXATTR = @need_internal_fsxattr@ NEED_INTERNAL_FSCRYPT_ADD_KEY_ARG = @need_internal_fscrypt_add_key_arg@ NEED_INTERNAL_FSCRYPT_POLICY_V2 = @need_internal_fscrypt_policy_v2@ HAVE_GETFSMAP = @have_getfsmap@ -HAVE_STATFS_FLAGS = @have_statfs_flags@ HAVE_MAP_SYNC = @have_map_sync@ HAVE_DEVMAPPER = @have_devmapper@ HAVE_MALLINFO = @have_mallinfo@ diff --git a/io/Makefile b/io/Makefile index 35b3ebd52..17d499de9 100644 --- a/io/Makefile +++ b/io/Makefile @@ -47,10 +47,6 @@ ifeq ($(HAVE_GETFSMAP),yes) CFILES += fsmap.c endif -ifeq ($(HAVE_STATFS_FLAGS),yes) -LCFLAGS += -DHAVE_STATFS_FLAGS -endif - default: depend $(LTCOMMAND) include $(BUILDRULES) diff --git a/io/stat.c b/io/stat.c index b57f9eefe..7f9f633bb 100644 --- a/io/stat.c +++ b/io/stat.c @@ -238,10 +238,8 @@ statfs_f( (long long) st.f_files); printf(_("statfs.f_ffree = %lld\n"), (long long) st.f_ffree); -#ifdef HAVE_STATFS_FLAGS printf(_("statfs.f_flags = 0x%llx\n"), (long long) st.f_flags); -#endif } } diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 index ff0e83752..320809a62 100644 --- a/m4/package_libcdev.m4 +++ b/m4/package_libcdev.m4 @@ -120,20 +120,6 @@ struct fsmap_head fh; AC_SUBST(have_getfsmap) ]) -AC_DEFUN([AC_HAVE_STATFS_FLAGS], - [ - AC_CHECK_TYPE(struct statfs, - [ - AC_CHECK_MEMBER(struct statfs.f_flags, - have_statfs_flags=yes,, - [#include <sys/vfs.h>] - ) - ],, - [#include <sys/vfs.h>] - ) - AC_SUBST(have_statfs_flags) - ]) - # # Check if we have MAP_SYNC defines (Linux) # -- 2.39.2