Whamcloud - gitweb
Branch b1_8
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext4-filterdata-sles11.patch
1 Index: linux-2.6.27.21-0.1/fs/ext4/ext4_i.h
2 ===================================================================
3 --- linux-2.6.27.21-0.1.orig/fs/ext4/ext4_i.h
4 +++ linux-2.6.27.21-0.1/fs/ext4/ext4_i.h
5 @@ -135,6 +135,8 @@ struct ext4_inode_info {
6         __u16 i_extra_isize;
7  
8         spinlock_t i_block_reservation_lock;
9 +
10 +       void *i_filterdata;
11  };
12  
13  #endif /* _EXT4_I */
14 Index: linux-2.6.27.21-0.1/fs/ext4/super.c
15 ===================================================================
16 --- linux-2.6.27.21-0.1.orig/fs/ext4/super.c
17 +++ linux-2.6.27.21-0.1/fs/ext4/super.c
18 @@ -624,6 +624,7 @@ static struct inode *ext4_alloc_inode(st
19         memset(&ei->i_cached_extent, 0, sizeof(struct ext4_ext_cache));
20         INIT_LIST_HEAD(&ei->i_prealloc_list);
21         spin_lock_init(&ei->i_prealloc_lock);
22 +       ei->i_filterdata = NULL;
23         jbd2_journal_init_jbd_inode(&ei->jinode, &ei->vfs_inode);
24         ei->i_reserved_data_blocks = 0;
25         ei->i_reserved_meta_blocks = 0;