diff options
author | liang xie <xieliang007@gmail.com> | 2014-05-13 04:06:43 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-05-13 04:06:43 +0200 |
commit | 5d60125530b0122f5a0a57481f3064a6250365dd (patch) | |
tree | ec782bb0e4e6a3828b8d2cf7f426700ad069ea2c /fs/ext4/inode.c | |
parent | ext4: remove unnecessary double parentheses (diff) | |
download | linux-5d60125530b0122f5a0a57481f3064a6250365dd.tar.xz linux-5d60125530b0122f5a0a57481f3064a6250365dd.zip |
ext4: add missing BUFFER_TRACE before ext4_journal_get_write_access
Make them more consistently
Signed-off-by: xieliang <xieliang@xiaomi.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 2bdbfcb48732..645de3eaf2c9 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -922,6 +922,7 @@ int do_journal_get_write_access(handle_t *handle, */ if (dirty) clear_buffer_dirty(bh); + BUFFER_TRACE(bh, "get write access"); ret = ext4_journal_get_write_access(handle, bh); if (!ret && dirty) ret = ext4_handle_dirty_metadata(handle, NULL, bh); @@ -1769,6 +1770,7 @@ static int __ext4_journalled_writepage(struct page *page, BUG_ON(!ext4_handle_valid(handle)); if (inline_data) { + BUFFER_TRACE(inode_bh, "get write access"); ret = ext4_journal_get_write_access(handle, inode_bh); err = ext4_handle_dirty_metadata(handle, inode, inode_bh); @@ -4412,6 +4414,7 @@ static int ext4_do_update_inode(handle_t *handle, err = rc; ext4_clear_inode_state(inode, EXT4_STATE_NEW); if (set_large_file) { + BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get write access"); err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); if (err) goto out_brelse; |