aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_jbd2.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-11-22 21:00:13 -0500
committerTheodore Ts'o <tytso@mit.edu>2009-11-22 21:00:13 -0500
commitb7e57e7c2a41826e51fe060fae5158bfc7a04e81 (patch)
tree2c7331402c731a9c6bb98827a4f6e5926fd90055 /fs/ext4/ext4_jbd2.h
parente4684b3fbb848446683feecb4aee133344c93933 (diff)
ext4: fold ext4_journal_forget() into ext4_forget()
Convert the last two callers of ext4_journal_forget() to use ext4_forget() instead, and then fold ext4_journal_forget() into ext4_forget(). This reduces are code complexity and shortens our call stack. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_jbd2.h')
-rw-r--r--fs/ext4/ext4_jbd2.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h
index f9fb4bb69577..84bc98ab9f0d 100644
--- a/fs/ext4/ext4_jbd2.h
+++ b/fs/ext4/ext4_jbd2.h
@@ -127,10 +127,6 @@ int __ext4_journal_get_undo_access(const char *where, handle_t *handle,
127int __ext4_journal_get_write_access(const char *where, handle_t *handle, 127int __ext4_journal_get_write_access(const char *where, handle_t *handle,
128 struct buffer_head *bh); 128 struct buffer_head *bh);
129 129
130/* When called with an invalid handle, this will still do a put on the BH */
131int __ext4_journal_forget(const char *where, handle_t *handle,
132 struct buffer_head *bh);
133
134int __ext4_forget(const char *where, handle_t *handle, int is_metadata, 130int __ext4_forget(const char *where, handle_t *handle, int is_metadata,
135 struct inode *inode, struct buffer_head *bh, 131 struct inode *inode, struct buffer_head *bh,
136 ext4_fsblk_t blocknr); 132 ext4_fsblk_t blocknr);
@@ -150,8 +146,6 @@ int __ext4_handle_dirty_metadata(const char *where, handle_t *handle,
150 (block_nr)) 146 (block_nr))
151#define ext4_journal_get_create_access(handle, bh) \ 147#define ext4_journal_get_create_access(handle, bh) \
152 __ext4_journal_get_create_access(__func__, (handle), (bh)) 148 __ext4_journal_get_create_access(__func__, (handle), (bh))
153#define ext4_journal_forget(handle, bh) \
154 __ext4_journal_forget(__func__, (handle), (bh))
155#define ext4_handle_dirty_metadata(handle, inode, bh) \ 149#define ext4_handle_dirty_metadata(handle, inode, bh) \
156 __ext4_handle_dirty_metadata(__func__, (handle), (inode), (bh)) 150 __ext4_handle_dirty_metadata(__func__, (handle), (inode), (bh))
157 151