Whamcloud - gitweb
LU-73 kernel: remove wrong jbd2 commit timer patch
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext4-filterdata-rhel5.patch
index 25ea28a..2bb1d36 100644 (file)
@@ -3,9 +3,9 @@ Index: linux-2.6.18.i386/fs/ext4/ext4_i.h
 --- linux-2.6.18.i386.orig/fs/ext4/ext4_i.h
 +++ linux-2.6.18.i386/fs/ext4/ext4_i.h
 @@ -162,6 +162,8 @@ struct ext4_inode_info {
-       /* mballoc */
-       struct list_head i_prealloc_list;
-       spinlock_t i_prealloc_lock;
+       __u16 i_extra_isize;
+
+       spinlock_t i_block_reservation_lock;
 +
 +      void *i_filterdata;
  };
@@ -16,9 +16,9 @@ Index: linux-2.6.18.i386/fs/ext4/super.c
 --- linux-2.6.18.i386.orig/fs/ext4/super.c
 +++ linux-2.6.18.i386/fs/ext4/super.c
 @@ -574,6 +574,7 @@ static struct inode *ext4_alloc_inode(st
-       memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache));
-       INIT_LIST_HEAD(&ei->i_prealloc_list);
-       spin_lock_init(&ei->i_prealloc_lock);
+       ei->i_allocated_meta_blocks = 0;
+       ei->i_delalloc_reserved_flag = 0;
+       spin_lock_init(&(ei->i_block_reservation_lock));
 +      ei->i_filterdata = NULL;
        return &ei->vfs_inode;
  }