Whamcloud - gitweb
Branch b1_8
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / export-ext4-2.6-rhel5.patch
1 Index: linux-2.6.18-128.1.6/fs/ext4/super.c
2 ===================================================================
3 --- linux-2.6.18-128.1.6.orig/fs/ext4/super.c
4 +++ linux-2.6.18-128.1.6/fs/ext4/super.c
5 @@ -185,6 +185,8 @@ void ext4_journal_abort_handle(const cha
6         jbd2_journal_abort_handle(handle);
7  }
8  
9 +EXPORT_SYMBOL(ext4_journal_abort_handle);
10 +
11  /* Deal with the reporting of failure conditions on a filesystem such as
12   * inconsistencies detected or read IO failures.
13   *
14 @@ -2459,6 +2461,8 @@ out_fail:
15         return ret;
16  }
17  
18 +EXPORT_SYMBOL(ext4_force_commit);
19 +
20  /*
21   * Setup any per-fs journal parameters now.  We'll do this both on
22   * initial mount, once the journal has been initialised but before we've
23 @@ -3502,6 +3506,12 @@ int ext4_map_inode_page(struct inode *in
24                         unsigned long *blocks, int *created, int create);
25  EXPORT_SYMBOL(ext4_map_inode_page);
26  
27 +EXPORT_SYMBOL(ext4_xattr_get);
28 +EXPORT_SYMBOL(ext4_xattr_set_handle);
29 +EXPORT_SYMBOL(ext4_bread);
30 +EXPORT_SYMBOL(ext4_journal_start_sb);
31 +EXPORT_SYMBOL(__ext4_journal_stop);
32 +
33  MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
34  MODULE_DESCRIPTION("Fourth Extended Filesystem with extents");
35  MODULE_LICENSE("GPL");
36 Index: linux-2.6.18-128.1.6/fs/ext4/ext4.h
37 ===================================================================
38 --- linux-2.6.18-128.1.6.orig/fs/ext4/ext4.h
39 +++ linux-2.6.18-128.1.6/fs/ext4/ext4.h
40 @@ -1024,6 +1024,8 @@ extern unsigned long ext4_count_free_ino
41  extern unsigned long ext4_count_dirs (struct super_block *);
42  extern void ext4_check_inodes_bitmap (struct super_block *);
43  extern unsigned long ext4_count_free (struct buffer_head *, unsigned);
44 +extern struct buffer_head *ext4_read_inode_bitmap(struct super_block *sb,
45 +                                                 ext4_group_t block_group);
46  
47  /* mballoc.c */
48  extern long ext4_mb_stats;
49 Index: linux-2.6.18-128.1.6/fs/ext4/ialloc.c
50 ===================================================================
51 --- linux-2.6.18-128.1.6.orig/fs/ext4/ialloc.c
52 +++ linux-2.6.18-128.1.6/fs/ext4/ialloc.c
53 @@ -96,7 +96,7 @@ unsigned ext4_init_inode_bitmap(struct s
54   *
55   * Return buffer_head of bitmap on success or NULL.
56   */
57 -static struct buffer_head *
58 +struct buffer_head *
59  ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group)
60  {
61         struct ext4_group_desc *desc;
62 @@ -137,6 +137,7 @@ ext4_read_inode_bitmap(struct super_bloc
63         }
64         return bh;
65  }
66 +EXPORT_SYMBOL(ext4_read_inode_bitmap);
67  
68  /*
69   * NOTE! When we get the inode, we're the only people