linux22-redhat-enterprise-kernels-add-inode-fields-20010906
authorDerrick Brashear <shadow@dementia.org>
Fri, 7 Sep 2001 02:12:29 +0000 (02:12 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 7 Sep 2001 02:12:29 +0000 (02:12 +0000)
struct vm_area_struct   *i_mmap_shared;
added in a patch to the redhat enterprise kernel

src/afs/LINUX/osi_vfs.h
src/cf/linux-test4.m4

index f973054..b5f92e1 100644 (file)
@@ -81,6 +81,9 @@ typedef struct vnode {
         struct address_space    i_data;
 #else
        struct vm_area_struct   *i_mmap;
+#if defined(STRUCT_INODE_HAS_I_MMAP_SHARED)
+        struct vm_area_struct   *i_mmap_shared;
+#endif
        struct page             *i_pages;
 #endif
 #if defined(STRUCT_INODE_HAS_I_MAPPING_OVERLOAD)
index cc2a8bc..ae22e13 100644 (file)
@@ -1,3 +1,18 @@
+AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_MMAP_SHARED, [
+AC_MSG_CHECKING(for i_mmap_shared in struct inode)
+save_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="-I${LINUX_KERNEL_PATH}/include -D__KERNEL__ $CPPFLAGS"
+AC_CACHE_VAL(ac_cv_linux_fs_struct_inode_has_i_mmap_shared,
+[
+AC_TRY_COMPILE(
+[#include <linux/fs.h>],
+[struct inode _inode;
+printf("%d\n", _inode.i_mmap_shared);],
+ac_cv_linux_fs_struct_inode_has_i_mmap_shared=yes,
+ac_cv_linux_fs_struct_inode_has_i_mmap_shared=no)])
+AC_MSG_RESULT($ac_cv_linux_fs_struct_inode_has_i_mmap_shared)
+CPPFLAGS="$save_CPPFLAGS"])
+
 AC_DEFUN(LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS, [
 AC_MSG_CHECKING(for i_dirty_data_buffers in struct inode)
 save_CPPFLAGS="$CPPFLAGS"