diff options
author | Mingming Cao <cmm@us.ibm.com> | 2006-10-11 04:20:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:15 -0400 |
commit | f7f4bccb729844a0fa873e224e3a6f7eeed095bb (patch) | |
tree | b5b8ce65b5c17b4a7d45e43a3530f2cc977fb894 /include/linux/ext4_jbd2.h | |
parent | 470decc613ab2048b619a01028072d932d9086ee (diff) |
[PATCH] jbd2: rename jbd2 symbols to avoid duplication of jbd symbols
Mingming Cao originally did this work, and Shaggy reproduced it using some
scripts from her.
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: Dave Kleikamp <shaggy@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/ext4_jbd2.h')
-rw-r--r-- | include/linux/ext4_jbd2.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/ext4_jbd2.h b/include/linux/ext4_jbd2.h index 3dbf6c779037..99d37557cbb4 100644 --- a/include/linux/ext4_jbd2.h +++ b/include/linux/ext4_jbd2.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/include/linux/ext4_jbd.h | 2 | * linux/include/linux/ext4_jbd2.h |
3 | * | 3 | * |
4 | * Written by Stephen C. Tweedie <sct@redhat.com>, 1999 | 4 | * Written by Stephen C. Tweedie <sct@redhat.com>, 1999 |
5 | * | 5 | * |
@@ -16,7 +16,7 @@ | |||
16 | #define _LINUX_EXT4_JBD_H | 16 | #define _LINUX_EXT4_JBD_H |
17 | 17 | ||
18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
19 | #include <linux/jbd.h> | 19 | #include <linux/jbd2.h> |
20 | #include <linux/ext4_fs.h> | 20 | #include <linux/ext4_fs.h> |
21 | 21 | ||
22 | #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal) | 22 | #define EXT4_JOURNAL(inode) (EXT4_SB((inode)->i_sb)->s_journal) |
@@ -116,7 +116,7 @@ static inline int | |||
116 | __ext4_journal_get_undo_access(const char *where, handle_t *handle, | 116 | __ext4_journal_get_undo_access(const char *where, handle_t *handle, |
117 | struct buffer_head *bh) | 117 | struct buffer_head *bh) |
118 | { | 118 | { |
119 | int err = journal_get_undo_access(handle, bh); | 119 | int err = jbd2_journal_get_undo_access(handle, bh); |
120 | if (err) | 120 | if (err) |
121 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | 121 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); |
122 | return err; | 122 | return err; |
@@ -126,7 +126,7 @@ static inline int | |||
126 | __ext4_journal_get_write_access(const char *where, handle_t *handle, | 126 | __ext4_journal_get_write_access(const char *where, handle_t *handle, |
127 | struct buffer_head *bh) | 127 | struct buffer_head *bh) |
128 | { | 128 | { |
129 | int err = journal_get_write_access(handle, bh); | 129 | int err = jbd2_journal_get_write_access(handle, bh); |
130 | if (err) | 130 | if (err) |
131 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | 131 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); |
132 | return err; | 132 | return err; |
@@ -135,13 +135,13 @@ __ext4_journal_get_write_access(const char *where, handle_t *handle, | |||
135 | static inline void | 135 | static inline void |
136 | ext4_journal_release_buffer(handle_t *handle, struct buffer_head *bh) | 136 | ext4_journal_release_buffer(handle_t *handle, struct buffer_head *bh) |
137 | { | 137 | { |
138 | journal_release_buffer(handle, bh); | 138 | jbd2_journal_release_buffer(handle, bh); |
139 | } | 139 | } |
140 | 140 | ||
141 | static inline int | 141 | static inline int |
142 | __ext4_journal_forget(const char *where, handle_t *handle, struct buffer_head *bh) | 142 | __ext4_journal_forget(const char *where, handle_t *handle, struct buffer_head *bh) |
143 | { | 143 | { |
144 | int err = journal_forget(handle, bh); | 144 | int err = jbd2_journal_forget(handle, bh); |
145 | if (err) | 145 | if (err) |
146 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | 146 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); |
147 | return err; | 147 | return err; |
@@ -151,7 +151,7 @@ static inline int | |||
151 | __ext4_journal_revoke(const char *where, handle_t *handle, | 151 | __ext4_journal_revoke(const char *where, handle_t *handle, |
152 | unsigned long blocknr, struct buffer_head *bh) | 152 | unsigned long blocknr, struct buffer_head *bh) |
153 | { | 153 | { |
154 | int err = journal_revoke(handle, blocknr, bh); | 154 | int err = jbd2_journal_revoke(handle, blocknr, bh); |
155 | if (err) | 155 | if (err) |
156 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | 156 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); |
157 | return err; | 157 | return err; |
@@ -161,7 +161,7 @@ static inline int | |||
161 | __ext4_journal_get_create_access(const char *where, | 161 | __ext4_journal_get_create_access(const char *where, |
162 | handle_t *handle, struct buffer_head *bh) | 162 | handle_t *handle, struct buffer_head *bh) |
163 | { | 163 | { |
164 | int err = journal_get_create_access(handle, bh); | 164 | int err = jbd2_journal_get_create_access(handle, bh); |
165 | if (err) | 165 | if (err) |
166 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | 166 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); |
167 | return err; | 167 | return err; |
@@ -171,7 +171,7 @@ static inline int | |||
171 | __ext4_journal_dirty_metadata(const char *where, | 171 | __ext4_journal_dirty_metadata(const char *where, |
172 | handle_t *handle, struct buffer_head *bh) | 172 | handle_t *handle, struct buffer_head *bh) |
173 | { | 173 | { |
174 | int err = journal_dirty_metadata(handle, bh); | 174 | int err = jbd2_journal_dirty_metadata(handle, bh); |
175 | if (err) | 175 | if (err) |
176 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); | 176 | ext4_journal_abort_handle(where, __FUNCTION__, bh, handle,err); |
177 | return err; | 177 | return err; |
@@ -211,22 +211,22 @@ static inline handle_t *ext4_journal_current_handle(void) | |||
211 | 211 | ||
212 | static inline int ext4_journal_extend(handle_t *handle, int nblocks) | 212 | static inline int ext4_journal_extend(handle_t *handle, int nblocks) |
213 | { | 213 | { |
214 | return journal_extend(handle, nblocks); | 214 | return jbd2_journal_extend(handle, nblocks); |
215 | } | 215 | } |
216 | 216 | ||
217 | static inline int ext4_journal_restart(handle_t *handle, int nblocks) | 217 | static inline int ext4_journal_restart(handle_t *handle, int nblocks) |
218 | { | 218 | { |
219 | return journal_restart(handle, nblocks); | 219 | return jbd2_journal_restart(handle, nblocks); |
220 | } | 220 | } |
221 | 221 | ||
222 | static inline int ext4_journal_blocks_per_page(struct inode *inode) | 222 | static inline int ext4_journal_blocks_per_page(struct inode *inode) |
223 | { | 223 | { |
224 | return journal_blocks_per_page(inode); | 224 | return jbd2_journal_blocks_per_page(inode); |
225 | } | 225 | } |
226 | 226 | ||
227 | static inline int ext4_journal_force_commit(journal_t *journal) | 227 | static inline int ext4_journal_force_commit(journal_t *journal) |
228 | { | 228 | { |
229 | return journal_force_commit(journal); | 229 | return jbd2_journal_force_commit(journal); |
230 | } | 230 | } |
231 | 231 | ||
232 | /* super.c */ | 232 | /* super.c */ |