1 Index: linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/ext4.h
2 ===================================================================
3 --- linux-3.10.0-123.13.2.el7.x86_64.orig/fs/ext4/ext4.h
4 +++ linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/ext4.h
5 @@ -1427,6 +1427,8 @@ static inline void ext4_clear_state_flag
7 #define NEXT_ORPHAN(inode) EXT4_I(inode)->i_dtime
9 +#define JOURNAL_START_HAS_3ARGS 1
12 * Codes for operating systems
14 @@ -2612,6 +2614,11 @@ struct ext4_extent;
16 extern int ext4_ext_tree_init(handle_t *handle, struct inode *);
17 extern int ext4_ext_writepage_trans_blocks(struct inode *, int);
18 +extern struct buffer_head *ext4_read_inode_bitmap(struct super_block *sb,
19 + ext4_group_t block_group);
20 +extern struct buffer_head *ext4_append(handle_t *handle,
21 + struct inode *inode,
22 + ext4_lblk_t *block);
23 extern int ext4_ext_index_trans_blocks(struct inode *inode, int extents);
25 extern int ext4_ext_map_blocks(handle_t *handle, struct inode *inode,
26 Index: linux-3.10.0-1062.el7.x86_64/fs/ext4/namei.c
27 ===================================================================
28 --- linux-3.10.0-1062.el7.x86_64.orig/fs/ext4/namei.c
29 +++ linux-3.10.0-1062.el7.x86_64/fs/ext4/namei.c
31 #define NAMEI_RA_BLOCKS 4
32 #define NAMEI_RA_SIZE (NAMEI_RA_CHUNKS * NAMEI_RA_BLOCKS)
34 -static struct buffer_head *ext4_append(handle_t *handle,
35 +struct buffer_head *ext4_append(handle_t *handle,
39 @@ -156,6 +156,7 @@ static struct buffer_head *__ext4_read_d
43 +EXPORT_SYMBOL(ext4_append);
46 #define assert(test) J_ASSERT(test)
47 @@ -2233,23 +2234,25 @@ out:
48 * for checking S_ISDIR(inode) (since the INODE_INDEX feature will not be set
49 * on regular files) and to avoid creating huge/slow non-HTREE directories.
51 -static void ext4_inc_count(handle_t *handle, struct inode *inode)
52 +void ext4_inc_count(handle_t *handle, struct inode *inode)
56 (inode->i_nlink > EXT4_LINK_MAX || inode->i_nlink == 2))
59 +EXPORT_SYMBOL(ext4_inc_count);
62 * If a directory had nlink == 1, then we should let it be 1. This indicates
63 * directory has >EXT4_LINK_MAX subdirs.
65 -static void ext4_dec_count(handle_t *handle, struct inode *inode)
66 +void ext4_dec_count(handle_t *handle, struct inode *inode)
68 if (!S_ISDIR(inode->i_mode) || inode->i_nlink > 2)
71 +EXPORT_SYMBOL(ext4_dec_count);
74 static int ext4_add_nondir(handle_t *handle,
75 Index: linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/ialloc.c
76 ===================================================================
77 --- linux-3.10.0-123.13.2.el7.x86_64.orig/fs/ext4/ialloc.c
78 +++ linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/ialloc.c
79 @@ -111,7 +111,7 @@ void ext4_end_bitmap_read(struct buffer_
81 * Return buffer_head of bitmap on success or NULL.
83 -static struct buffer_head *
85 ext4_read_inode_bitmap(struct super_block *sb, ext4_group_t block_group)
87 struct ext4_group_desc *desc;
88 @@ -191,6 +191,7 @@ verify:
89 set_buffer_verified(bh);
92 +EXPORT_SYMBOL(ext4_read_inode_bitmap);
95 * NOTE! When we get the inode, we're the only people
96 Index: linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/inode.c
97 ===================================================================
98 --- linux-3.10.0-123.13.2.el7.x86_64.orig/fs/ext4/inode.c
99 +++ linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/inode.c
100 @@ -5281,3 +5281,18 @@ out:
101 sb_end_pagefault(inode->i_sb);
104 +EXPORT_SYMBOL(ext4_map_blocks);
105 +EXPORT_SYMBOL(ext4_truncate);
106 +EXPORT_SYMBOL(ext4_iget);
107 +EXPORT_SYMBOL(ext4_bread);
108 +EXPORT_SYMBOL(ext4_itable_unused_count);
109 +EXPORT_SYMBOL(ext4_force_commit);
110 +EXPORT_SYMBOL(ext4_mark_inode_dirty);
111 +EXPORT_SYMBOL(ext4_get_group_desc);
112 +EXPORT_SYMBOL(__ext4_journal_get_write_access);
113 +EXPORT_SYMBOL(__ext4_journal_start_sb);
114 +EXPORT_SYMBOL(__ext4_journal_stop);
115 +EXPORT_SYMBOL(__ext4_handle_dirty_metadata);
116 +EXPORT_SYMBOL(__ext4_std_error);
117 +EXPORT_SYMBOL(ext4fs_dirhash);
118 +EXPORT_SYMBOL(ext4_get_inode_loc);
119 Index: linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/mballoc.c
120 ===================================================================
121 --- linux-3.10.0-123.13.2.el7.x86_64.orig/fs/ext4/mballoc.c
122 +++ linux-3.10.0-123.13.2.el7.x86_64/fs/ext4/mballoc.c
123 @@ -5281,7 +5281,6 @@ out:
124 void *buddy, void *bitmap, ext4_group_t group)
126 struct ext4_group_info *grp = ext4_get_group_info(sb, group);
127 - struct ext4_sb_info *sbi = EXT4_SB(sb);
128 ext4_grpblk_t max = EXT4_CLUSTERS_PER_GROUP(sb);