linux24-add-configure-glue-for-new-inode-fields-20020108
authorDerrick Brashear <shadow@dementia.org>
Tue, 8 Jan 2002 20:41:11 +0000 (20:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 8 Jan 2002 20:41:11 +0000 (20:41 +0000)
based on report from cg@cdegroot.com

acinclude.m4
src/afs/afs_vcache.c

index 41a3b21..c669a79 100644 (file)
@@ -127,6 +127,8 @@ case $system in
                 )
                 LINUX_FS_STRUCT_ADDRESS_SPACE_HAS_PAGE_LOCK
                 LINUX_FS_STRUCT_INODE_HAS_I_TRUNCATE_SEM
+                LINUX_FS_STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS
+                LINUX_FS_STRUCT_INODE_HAS_I_DEVICES
                 LINUX_INODE_SETATTR_RETURN_TYPE
                 LINUX_NEED_RHCONFIG
                 LINUX_WHICH_MODULES
index da57a64..67d3461 100644 (file)
@@ -962,6 +962,12 @@ struct vcache *afs_NewVCache(struct VenusFid *afid, struct server *serverp,
        INIT_LIST_HEAD(&ip->i_data.dirty_pages);
        INIT_LIST_HEAD(&ip->i_data.locked_pages);
        INIT_LIST_HEAD(&ip->i_dirty_buffers);
+#ifdef STRUCT_INODE_HAS_I_DIRTY_DATA_BUFFERS
+       INIT_LIST_HEAD(&inode->i_dirty_data_buffers);
+#endif
+#ifdef STRUCT_INODE_HAS_I_DEVICES
+       INIT_LIST_HEAD(&inode->i_devices);
+#endif
        ip->i_data.host = (void*) ip;
        ip->i_mapping = &ip->i_data;
 #ifdef STRUCT_INODE_HAS_I_TRUNCATE_SEM