Whamcloud - gitweb
LU-162 Export ext4_discard_preallocations for ldiskfs
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / export-ext4-2.6-rhel6.patch
1 Index: linux-2.6.32.i386/fs/ext4/super.c
2 ===================================================================
3 --- linux-2.6.32.i386.orig/fs/ext4/super.c      2010-04-07 14:18:32.000000000 +0530
4 +++ linux-2.6.32.i386/fs/ext4/super.c   2010-04-07 14:19:47.000000000 +0530
5 @@ -291,6 +291,8 @@
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 @@ -3030,6 +3032,8 @@
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 @@ -4088,6 +4092,12 @@
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");
35  MODULE_LICENSE("GPL");
36 Index: linux-2.6.32.i386/fs/ext4/ext4.h
37 ===================================================================
38 --- linux-2.6.32.i386.orig/fs/ext4/ext4.h       2010-04-07 14:17:04.000000000 +0530
39 +++ linux-2.6.32.i386/fs/ext4/ext4.h    2010-04-07 14:20:34.000000000 +0530
40 @@ -1385,6 +1385,8 @@
41                                        struct buffer_head *bh,
42                                        ext4_group_t group,
43                                        struct ext4_group_desc *desc);
44 +extern struct buffer_head *ext4_read_inode_bitmap(struct super_block *sb,
45 +                                                 ext4_group_t block_group);
46  extern void mark_bitmap_end(int start_bit, int end_bit, char *bitmap);
47  
48  /* mballoc.c */
49 Index: linux-2.6.32.i386/fs/ext4/ialloc.c
50 ===================================================================
51 --- linux-2.6.32.i386.orig/fs/ext4/ialloc.c     2009-12-03 09:21:21.000000000 +0530
52 +++ linux-2.6.32.i386/fs/ext4/ialloc.c  2010-04-07 14:19:47.000000000 +0530
53 @@ -98,7 +98,7 @@
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 @@ -161,6 +161,7 @@
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
70 Index: linux-2.6.32.i386/fs/ext4/balloc.c
71 ===================================================================
72 --- linux-2.6.32.i386.orig/fs/ext4/balloc.c     2010-03-19 15:43:37.000000000 +0530
73 +++ linux-2.6.32.i386/fs/ext4/balloc.c  2010-04-07 14:19:47.000000000 +0530
74 @@ -235,6 +235,7 @@
75                 *bh = sbi->s_group_desc[group_desc];
76         return desc;
77  }
78 +EXPORT_SYMBOL(ext4_get_group_desc);
79  
80  static int ext4_valid_block_bitmap(struct super_block *sb,
81                                         struct ext4_group_desc *desc,