diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 2677f04d02..06df41d827 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -722,9 +722,10 @@ AC_DEFUN([LINUX_STATFS_TAKES_DENTRY], [ AC_TRY_KBUILD( [#include #include ], -[ -extern int vfs_statfs(struct dentry *, struct kstatfs *); -], +[struct super_block _sb; +struct dentry _dentry; +struct kstatfs _kstatfs; +(void)_sb.s_op->statfs(&_dentry, &_kstatfs);], ac_cv_linux_statfs_takes_dentry=yes, ac_cv_linux_statfs_takes_dentry=no)]) AC_MSG_RESULT($ac_cv_linux_statfs_takes_dentry)])