Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242387
b: refs/heads/master
c: 537a031
h: refs/heads/master
i:
  242385: 2c4083a
  242383: b66831b
v: v3
  • Loading branch information
Amir Goldstein authored and Theodore Ts'o committed Mar 21, 2011
1 parent fd85197 commit 709ae65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef6078930263bfcdcfe4dddb2cd85254b4cf4f5c
refs/heads/master: 537a03103c67c4688b1e8e6671ad119aec5e2efb
7 changes: 0 additions & 7 deletions trunk/fs/ext4/ext4_jbd2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions trunk/fs/ext4/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,12 +499,12 @@ static int add_new_gdb(handle_t *handle, struct inode *inode,
return err;

exit_inode:
/* ext4_journal_release_buffer(handle, iloc.bh); */
/* ext4_handle_release_buffer(handle, iloc.bh); */
brelse(iloc.bh);
exit_dindj:
/* ext4_journal_release_buffer(handle, dind); */
/* ext4_handle_release_buffer(handle, dind); */
exit_sbh:
/* ext4_journal_release_buffer(handle, EXT4_SB(sb)->s_sbh); */
/* ext4_handle_release_buffer(handle, EXT4_SB(sb)->s_sbh); */
exit_dind:
brelse(dind);
exit_bh:
Expand Down Expand Up @@ -586,7 +586,7 @@ static int reserve_backup_gdb(handle_t *handle, struct inode *inode,
/*
int j;
for (j = 0; j < i; j++)
ext4_journal_release_buffer(handle, primary[j]);
ext4_handle_release_buffer(handle, primary[j]);
*/
goto exit_bh;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/ext4/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ ext4_xattr_block_set(handle_t *handle, struct inode *inode,
int offset = (char *)s->here - bs->bh->b_data;

unlock_buffer(bs->bh);
jbd2_journal_release_buffer(handle, bs->bh);
ext4_handle_release_buffer(handle, bs->bh);
if (ce) {
mb_cache_entry_release(ce);
ce = NULL;
Expand Down

0 comments on commit 709ae65

Please sign in to comment.