diff --git a/lnet/archdep.m4 b/lnet/archdep.m4
index 95f5ebe82103d289b302a4ce11ec05712d82d976..37351ef14fa9abf6fdc287054a9b220d90b1333c 100644
--- a/lnet/archdep.m4
+++ b/lnet/archdep.m4
@@ -548,7 +548,7 @@ fi
 # ---------- check ->lookup_raw() support --------
 
 AC_MSG_CHECKING([if kernel supports ->lookup_raw()])
-HAVE_LOOKUP_RAW="`grep -c 'lookup_raw.*struct inode' $LINUX/include/linux/proc_fs.h`"
+HAVE_LOOKUP_RAW="`grep -c 'lookup_raw.*struct inode' $LINUX/include/linux/fs.h`"
 if test "$HAVE_LOOKUP_RAW" != 0 ; then
 	AC_DEFINE(HAVE_LOOKUP_RAW, 1, [the kernel supports ->lookup_raw()])
 	AC_MSG_RESULT([yes])
diff --git a/lustre/portals/archdep.m4 b/lustre/portals/archdep.m4
index 95f5ebe82103d289b302a4ce11ec05712d82d976..37351ef14fa9abf6fdc287054a9b220d90b1333c 100644
--- a/lustre/portals/archdep.m4
+++ b/lustre/portals/archdep.m4
@@ -548,7 +548,7 @@ fi
 # ---------- check ->lookup_raw() support --------
 
 AC_MSG_CHECKING([if kernel supports ->lookup_raw()])
-HAVE_LOOKUP_RAW="`grep -c 'lookup_raw.*struct inode' $LINUX/include/linux/proc_fs.h`"
+HAVE_LOOKUP_RAW="`grep -c 'lookup_raw.*struct inode' $LINUX/include/linux/fs.h`"
 if test "$HAVE_LOOKUP_RAW" != 0 ; then
 	AC_DEFINE(HAVE_LOOKUP_RAW, 1, [the kernel supports ->lookup_raw()])
 	AC_MSG_RESULT([yes])