summaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4_jbd2.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2011-03-20 22:57:02 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-03-20 22:57:02 -0400
commit537a03103c67c4688b1e8e6671ad119aec5e2efb (patch)
tree8d5df9bfe1e027395455374cd076b5997d3b488d /fs/ext4/ext4_jbd2.h
parentef6078930263bfcdcfe4dddb2cd85254b4cf4f5c (diff)
downloadlinux-537a03103c67c4688b1e8e6671ad119aec5e2efb.tar.gz
linux-537a03103c67c4688b1e8e6671ad119aec5e2efb.tar.bz2
linux-537a03103c67c4688b1e8e6671ad119aec5e2efb.zip
ext4: unify the ext4_handle_release_buffer() api
There are two wrapper functions which do exactly the same thing: ext4_journal_release_buffer(), and ext4_handle_release_buffer(). In addition, ext4_xattr_block_set() calls jbd2_journal_release_buffer() directly. Unify all of the code to use ext4_handle_release_buffer(), and get rid of ext4_journal_release_buffer(). Signed-off-by: Amir Goldstein <amir73il@users.sf.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_jbd2.h')
-rw-r--r--fs/ext4/ext4_jbd2.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h
index d8b992e658c1..e25e99bf7ee1 100644
--- a/fs/ext4/ext4_jbd2.h
+++ b/fs/ext4/ext4_jbd2.h
@@ -202,13 +202,6 @@ static inline int ext4_handle_has_enough_credits(handle_t *handle, int needed)
return 1;
}
-static inline void ext4_journal_release_buffer(handle_t *handle,
- struct buffer_head *bh)
-{
- if (ext4_handle_valid(handle))
- jbd2_journal_release_buffer(handle, bh);
-}
-
static inline handle_t *ext4_journal_start(struct inode *inode, int nblocks)
{
return ext4_journal_start_sb(inode->i_sb, nblocks);