diff options
author | liang xie <xieliang007@gmail.com> | 2014-05-12 22:06:43 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-05-12 22:06:43 -0400 |
commit | 5d60125530b0122f5a0a57481f3064a6250365dd (patch) | |
tree | ec782bb0e4e6a3828b8d2cf7f426700ad069ea2c /fs/ext4/inode.c | |
parent | c8b459f492cbe8be26d8eac0489ef627ed355947 (diff) |
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, | |||
922 | */ | 922 | */ |
923 | if (dirty) | 923 | if (dirty) |
924 | clear_buffer_dirty(bh); | 924 | clear_buffer_dirty(bh); |
925 | BUFFER_TRACE(bh, "get write access"); | ||
925 | ret = ext4_journal_get_write_access(handle, bh); | 926 | ret = ext4_journal_get_write_access(handle, bh); |
926 | if (!ret && dirty) | 927 | if (!ret && dirty) |
927 | ret = ext4_handle_dirty_metadata(handle, NULL, bh); | 928 | ret = ext4_handle_dirty_metadata(handle, NULL, bh); |
@@ -1769,6 +1770,7 @@ static int __ext4_journalled_writepage(struct page *page, | |||
1769 | BUG_ON(!ext4_handle_valid(handle)); | 1770 | BUG_ON(!ext4_handle_valid(handle)); |
1770 | 1771 | ||
1771 | if (inline_data) { | 1772 | if (inline_data) { |
1773 | BUFFER_TRACE(inode_bh, "get write access"); | ||
1772 | ret = ext4_journal_get_write_access(handle, inode_bh); | 1774 | ret = ext4_journal_get_write_access(handle, inode_bh); |
1773 | 1775 | ||
1774 | err = ext4_handle_dirty_metadata(handle, inode, inode_bh); | 1776 | err = ext4_handle_dirty_metadata(handle, inode, inode_bh); |
@@ -4412,6 +4414,7 @@ static int ext4_do_update_inode(handle_t *handle, | |||
4412 | err = rc; | 4414 | err = rc; |
4413 | ext4_clear_inode_state(inode, EXT4_STATE_NEW); | 4415 | ext4_clear_inode_state(inode, EXT4_STATE_NEW); |
4414 | if (set_large_file) { | 4416 | if (set_large_file) { |
4417 | BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get write access"); | ||
4415 | err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); | 4418 | err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); |
4416 | if (err) | 4419 | if (err) |
4417 | goto out_brelse; | 4420 | goto out_brelse; |