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 | |
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')
-rw-r--r-- | fs/ext4/extents.c | 1 | ||||
-rw-r--r-- | fs/ext4/file.c | 1 | ||||
-rw-r--r-- | fs/ext4/inline.c | 5 | ||||
-rw-r--r-- | fs/ext4/inode.c | 3 | ||||
-rw-r--r-- | fs/ext4/mballoc.c | 2 | ||||
-rw-r--r-- | fs/ext4/move_extent.c | 1 | ||||
-rw-r--r-- | fs/ext4/namei.c | 2 | ||||
-rw-r--r-- | fs/ext4/resize.c | 13 | ||||
-rw-r--r-- | fs/ext4/super.c | 1 | ||||
-rw-r--r-- | fs/ext4/xattr.c | 4 |
10 files changed, 33 insertions, 0 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 662e94c22c3d..5bbe425640da 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c | |||
@@ -143,6 +143,7 @@ static int ext4_ext_get_access(handle_t *handle, struct inode *inode, | |||
143 | { | 143 | { |
144 | if (path->p_bh) { | 144 | if (path->p_bh) { |
145 | /* path points to block */ | 145 | /* path points to block */ |
146 | BUFFER_TRACE(path->p_bh, "get_write_access"); | ||
146 | return ext4_journal_get_write_access(handle, path->p_bh); | 147 | return ext4_journal_get_write_access(handle, path->p_bh); |
147 | } | 148 | } |
148 | /* path points to leaf/index in inode body */ | 149 | /* path points to leaf/index in inode body */ |
diff --git a/fs/ext4/file.c b/fs/ext4/file.c index 2389c4e71bf8..4e8bc284ec0e 100644 --- a/fs/ext4/file.c +++ b/fs/ext4/file.c | |||
@@ -244,6 +244,7 @@ static int ext4_file_open(struct inode * inode, struct file * filp) | |||
244 | handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 1); | 244 | handle = ext4_journal_start_sb(sb, EXT4_HT_MISC, 1); |
245 | if (IS_ERR(handle)) | 245 | if (IS_ERR(handle)) |
246 | return PTR_ERR(handle); | 246 | return PTR_ERR(handle); |
247 | BUFFER_TRACE(sbi->s_sbh, "get_write_access"); | ||
247 | err = ext4_journal_get_write_access(handle, sbi->s_sbh); | 248 | err = ext4_journal_get_write_access(handle, sbi->s_sbh); |
248 | if (err) { | 249 | if (err) { |
249 | ext4_journal_stop(handle); | 250 | ext4_journal_stop(handle); |
diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c index 33dd704d16bd..645205d8ada6 100644 --- a/fs/ext4/inline.c +++ b/fs/ext4/inline.c | |||
@@ -264,6 +264,7 @@ static int ext4_create_inline_data(handle_t *handle, | |||
264 | if (error) | 264 | if (error) |
265 | return error; | 265 | return error; |
266 | 266 | ||
267 | BUFFER_TRACE(is.iloc.bh, "get_write_access"); | ||
267 | error = ext4_journal_get_write_access(handle, is.iloc.bh); | 268 | error = ext4_journal_get_write_access(handle, is.iloc.bh); |
268 | if (error) | 269 | if (error) |
269 | goto out; | 270 | goto out; |
@@ -347,6 +348,7 @@ static int ext4_update_inline_data(handle_t *handle, struct inode *inode, | |||
347 | if (error == -ENODATA) | 348 | if (error == -ENODATA) |
348 | goto out; | 349 | goto out; |
349 | 350 | ||
351 | BUFFER_TRACE(is.iloc.bh, "get_write_access"); | ||
350 | error = ext4_journal_get_write_access(handle, is.iloc.bh); | 352 | error = ext4_journal_get_write_access(handle, is.iloc.bh); |
351 | if (error) | 353 | if (error) |
352 | goto out; | 354 | goto out; |
@@ -424,6 +426,7 @@ static int ext4_destroy_inline_data_nolock(handle_t *handle, | |||
424 | if (error) | 426 | if (error) |
425 | goto out; | 427 | goto out; |
426 | 428 | ||
429 | BUFFER_TRACE(is.iloc.bh, "get_write_access"); | ||
427 | error = ext4_journal_get_write_access(handle, is.iloc.bh); | 430 | error = ext4_journal_get_write_access(handle, is.iloc.bh); |
428 | if (error) | 431 | if (error) |
429 | goto out; | 432 | goto out; |
@@ -1007,6 +1010,7 @@ static int ext4_add_dirent_to_inline(handle_t *handle, | |||
1007 | if (err) | 1010 | if (err) |
1008 | return err; | 1011 | return err; |
1009 | 1012 | ||
1013 | BUFFER_TRACE(iloc->bh, "get_write_access"); | ||
1010 | err = ext4_journal_get_write_access(handle, iloc->bh); | 1014 | err = ext4_journal_get_write_access(handle, iloc->bh); |
1011 | if (err) | 1015 | if (err) |
1012 | return err; | 1016 | return err; |
@@ -1669,6 +1673,7 @@ int ext4_delete_inline_entry(handle_t *handle, | |||
1669 | EXT4_MIN_INLINE_DATA_SIZE; | 1673 | EXT4_MIN_INLINE_DATA_SIZE; |
1670 | } | 1674 | } |
1671 | 1675 | ||
1676 | BUFFER_TRACE(bh, "get_write_access"); | ||
1672 | err = ext4_journal_get_write_access(handle, bh); | 1677 | err = ext4_journal_get_write_access(handle, bh); |
1673 | if (err) | 1678 | if (err) |
1674 | goto out; | 1679 | goto out; |
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; |
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 3235a2fd7e7e..6ca41e7a3fe3 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c | |||
@@ -2874,6 +2874,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac, | |||
2874 | if (!bitmap_bh) | 2874 | if (!bitmap_bh) |
2875 | goto out_err; | 2875 | goto out_err; |
2876 | 2876 | ||
2877 | BUFFER_TRACE(bitmap_bh, "getting write access"); | ||
2877 | err = ext4_journal_get_write_access(handle, bitmap_bh); | 2878 | err = ext4_journal_get_write_access(handle, bitmap_bh); |
2878 | if (err) | 2879 | if (err) |
2879 | goto out_err; | 2880 | goto out_err; |
@@ -2886,6 +2887,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac, | |||
2886 | ext4_debug("using block group %u(%d)\n", ac->ac_b_ex.fe_group, | 2887 | ext4_debug("using block group %u(%d)\n", ac->ac_b_ex.fe_group, |
2887 | ext4_free_group_clusters(sb, gdp)); | 2888 | ext4_free_group_clusters(sb, gdp)); |
2888 | 2889 | ||
2890 | BUFFER_TRACE(gdp_bh, "get_write_access"); | ||
2889 | err = ext4_journal_get_write_access(handle, gdp_bh); | 2891 | err = ext4_journal_get_write_access(handle, gdp_bh); |
2890 | if (err) | 2892 | if (err) |
2891 | goto out_err; | 2893 | goto out_err; |
diff --git a/fs/ext4/move_extent.c b/fs/ext4/move_extent.c index 1b809fe51da1..2484c7ec6a72 100644 --- a/fs/ext4/move_extent.c +++ b/fs/ext4/move_extent.c | |||
@@ -391,6 +391,7 @@ mext_insert_extents(handle_t *handle, struct inode *orig_inode, | |||
391 | 391 | ||
392 | if (depth) { | 392 | if (depth) { |
393 | /* Register to journal */ | 393 | /* Register to journal */ |
394 | BUFFER_TRACE(orig_path->p_bh, "get_write_access"); | ||
394 | ret = ext4_journal_get_write_access(handle, orig_path->p_bh); | 395 | ret = ext4_journal_get_write_access(handle, orig_path->p_bh); |
395 | if (ret) | 396 | if (ret) |
396 | return ret; | 397 | return ret; |
diff --git a/fs/ext4/namei.c b/fs/ext4/namei.c index a683f958f128..7ac616769706 100644 --- a/fs/ext4/namei.c +++ b/fs/ext4/namei.c | |||
@@ -67,6 +67,7 @@ static struct buffer_head *ext4_append(handle_t *handle, | |||
67 | return ERR_PTR(err); | 67 | return ERR_PTR(err); |
68 | inode->i_size += inode->i_sb->s_blocksize; | 68 | inode->i_size += inode->i_sb->s_blocksize; |
69 | EXT4_I(inode)->i_disksize = inode->i_size; | 69 | EXT4_I(inode)->i_disksize = inode->i_size; |
70 | BUFFER_TRACE(bh, "get_write_access"); | ||
70 | err = ext4_journal_get_write_access(handle, bh); | 71 | err = ext4_journal_get_write_access(handle, bh); |
71 | if (err) { | 72 | if (err) { |
72 | brelse(bh); | 73 | brelse(bh); |
@@ -1778,6 +1779,7 @@ static int make_indexed_dir(handle_t *handle, struct dentry *dentry, | |||
1778 | 1779 | ||
1779 | blocksize = dir->i_sb->s_blocksize; | 1780 | blocksize = dir->i_sb->s_blocksize; |
1780 | dxtrace(printk(KERN_DEBUG "Creating index: inode %lu\n", dir->i_ino)); | 1781 | dxtrace(printk(KERN_DEBUG "Creating index: inode %lu\n", dir->i_ino)); |
1782 | BUFFER_TRACE(bh, "get_write_access"); | ||
1781 | retval = ext4_journal_get_write_access(handle, bh); | 1783 | retval = ext4_journal_get_write_access(handle, bh); |
1782 | if (retval) { | 1784 | if (retval) { |
1783 | ext4_std_error(dir->i_sb, retval); | 1785 | ext4_std_error(dir->i_sb, retval); |
diff --git a/fs/ext4/resize.c b/fs/ext4/resize.c index f3b84cd9de56..bb9adabb7ec6 100644 --- a/fs/ext4/resize.c +++ b/fs/ext4/resize.c | |||
@@ -348,6 +348,7 @@ static struct buffer_head *bclean(handle_t *handle, struct super_block *sb, | |||
348 | bh = sb_getblk(sb, blk); | 348 | bh = sb_getblk(sb, blk); |
349 | if (unlikely(!bh)) | 349 | if (unlikely(!bh)) |
350 | return ERR_PTR(-ENOMEM); | 350 | return ERR_PTR(-ENOMEM); |
351 | BUFFER_TRACE(bh, "get_write_access"); | ||
351 | if ((err = ext4_journal_get_write_access(handle, bh))) { | 352 | if ((err = ext4_journal_get_write_access(handle, bh))) { |
352 | brelse(bh); | 353 | brelse(bh); |
353 | bh = ERR_PTR(err); | 354 | bh = ERR_PTR(err); |
@@ -426,6 +427,7 @@ static int set_flexbg_block_bitmap(struct super_block *sb, handle_t *handle, | |||
426 | if (unlikely(!bh)) | 427 | if (unlikely(!bh)) |
427 | return -ENOMEM; | 428 | return -ENOMEM; |
428 | 429 | ||
430 | BUFFER_TRACE(bh, "get_write_access"); | ||
429 | err = ext4_journal_get_write_access(handle, bh); | 431 | err = ext4_journal_get_write_access(handle, bh); |
430 | if (err) | 432 | if (err) |
431 | return err; | 433 | return err; |
@@ -518,6 +520,7 @@ static int setup_new_flex_group_blocks(struct super_block *sb, | |||
518 | goto out; | 520 | goto out; |
519 | } | 521 | } |
520 | 522 | ||
523 | BUFFER_TRACE(gdb, "get_write_access"); | ||
521 | err = ext4_journal_get_write_access(handle, gdb); | 524 | err = ext4_journal_get_write_access(handle, gdb); |
522 | if (err) { | 525 | if (err) { |
523 | brelse(gdb); | 526 | brelse(gdb); |
@@ -790,14 +793,17 @@ static int add_new_gdb(handle_t *handle, struct inode *inode, | |||
790 | goto exit_dind; | 793 | goto exit_dind; |
791 | } | 794 | } |
792 | 795 | ||
796 | BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); | ||
793 | err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); | 797 | err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); |
794 | if (unlikely(err)) | 798 | if (unlikely(err)) |
795 | goto exit_dind; | 799 | goto exit_dind; |
796 | 800 | ||
801 | BUFFER_TRACE(gdb_bh, "get_write_access"); | ||
797 | err = ext4_journal_get_write_access(handle, gdb_bh); | 802 | err = ext4_journal_get_write_access(handle, gdb_bh); |
798 | if (unlikely(err)) | 803 | if (unlikely(err)) |
799 | goto exit_dind; | 804 | goto exit_dind; |
800 | 805 | ||
806 | BUFFER_TRACE(dind, "get_write_access"); | ||
801 | err = ext4_journal_get_write_access(handle, dind); | 807 | err = ext4_journal_get_write_access(handle, dind); |
802 | if (unlikely(err)) | 808 | if (unlikely(err)) |
803 | ext4_std_error(sb, err); | 809 | ext4_std_error(sb, err); |
@@ -902,6 +908,7 @@ static int add_new_gdb_meta_bg(struct super_block *sb, | |||
902 | EXT4_SB(sb)->s_group_desc = n_group_desc; | 908 | EXT4_SB(sb)->s_group_desc = n_group_desc; |
903 | EXT4_SB(sb)->s_gdb_count++; | 909 | EXT4_SB(sb)->s_gdb_count++; |
904 | ext4_kvfree(o_group_desc); | 910 | ext4_kvfree(o_group_desc); |
911 | BUFFER_TRACE(gdb_bh, "get_write_access"); | ||
905 | err = ext4_journal_get_write_access(handle, gdb_bh); | 912 | err = ext4_journal_get_write_access(handle, gdb_bh); |
906 | if (unlikely(err)) | 913 | if (unlikely(err)) |
907 | brelse(gdb_bh); | 914 | brelse(gdb_bh); |
@@ -977,6 +984,7 @@ static int reserve_backup_gdb(handle_t *handle, struct inode *inode, | |||
977 | } | 984 | } |
978 | 985 | ||
979 | for (i = 0; i < reserved_gdb; i++) { | 986 | for (i = 0; i < reserved_gdb; i++) { |
987 | BUFFER_TRACE(primary[i], "get_write_access"); | ||
980 | if ((err = ext4_journal_get_write_access(handle, primary[i]))) | 988 | if ((err = ext4_journal_get_write_access(handle, primary[i]))) |
981 | goto exit_bh; | 989 | goto exit_bh; |
982 | } | 990 | } |
@@ -1084,6 +1092,7 @@ static void update_backups(struct super_block *sb, int blk_off, char *data, | |||
1084 | ext4_debug("update metadata backup %llu(+%llu)\n", | 1092 | ext4_debug("update metadata backup %llu(+%llu)\n", |
1085 | backup_block, backup_block - | 1093 | backup_block, backup_block - |
1086 | ext4_group_first_block_no(sb, group)); | 1094 | ext4_group_first_block_no(sb, group)); |
1095 | BUFFER_TRACE(bh, "get_write_access"); | ||
1087 | if ((err = ext4_journal_get_write_access(handle, bh))) | 1096 | if ((err = ext4_journal_get_write_access(handle, bh))) |
1088 | break; | 1097 | break; |
1089 | lock_buffer(bh); | 1098 | lock_buffer(bh); |
@@ -1163,6 +1172,7 @@ static int ext4_add_new_descs(handle_t *handle, struct super_block *sb, | |||
1163 | */ | 1172 | */ |
1164 | if (gdb_off) { | 1173 | if (gdb_off) { |
1165 | gdb_bh = sbi->s_group_desc[gdb_num]; | 1174 | gdb_bh = sbi->s_group_desc[gdb_num]; |
1175 | BUFFER_TRACE(gdb_bh, "get_write_access"); | ||
1166 | err = ext4_journal_get_write_access(handle, gdb_bh); | 1176 | err = ext4_journal_get_write_access(handle, gdb_bh); |
1167 | 1177 | ||
1168 | if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group)) | 1178 | if (!err && reserved_gdb && ext4_bg_num_gdb(sb, group)) |
@@ -1433,6 +1443,7 @@ static int ext4_flex_group_add(struct super_block *sb, | |||
1433 | goto exit; | 1443 | goto exit; |
1434 | } | 1444 | } |
1435 | 1445 | ||
1446 | BUFFER_TRACE(sbi->s_sbh, "get_write_access"); | ||
1436 | err = ext4_journal_get_write_access(handle, sbi->s_sbh); | 1447 | err = ext4_journal_get_write_access(handle, sbi->s_sbh); |
1437 | if (err) | 1448 | if (err) |
1438 | goto exit_journal; | 1449 | goto exit_journal; |
@@ -1645,6 +1656,7 @@ static int ext4_group_extend_no_check(struct super_block *sb, | |||
1645 | return err; | 1656 | return err; |
1646 | } | 1657 | } |
1647 | 1658 | ||
1659 | BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); | ||
1648 | err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); | 1660 | err = ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh); |
1649 | if (err) { | 1661 | if (err) { |
1650 | ext4_warning(sb, "error %d on journal write access", err); | 1662 | ext4_warning(sb, "error %d on journal write access", err); |
@@ -1804,6 +1816,7 @@ static int ext4_convert_meta_bg(struct super_block *sb, struct inode *inode) | |||
1804 | if (IS_ERR(handle)) | 1816 | if (IS_ERR(handle)) |
1805 | return PTR_ERR(handle); | 1817 | return PTR_ERR(handle); |
1806 | 1818 | ||
1819 | BUFFER_TRACE(sbi->s_sbh, "get_write_access"); | ||
1807 | err = ext4_journal_get_write_access(handle, sbi->s_sbh); | 1820 | err = ext4_journal_get_write_access(handle, sbi->s_sbh); |
1808 | if (err) | 1821 | if (err) |
1809 | goto errout; | 1822 | goto errout; |
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 84e330373f9e..b9b9aabfb4d2 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -5381,6 +5381,7 @@ static ssize_t ext4_quota_write(struct super_block *sb, int type, | |||
5381 | bh = ext4_bread(handle, inode, blk, 1, &err); | 5381 | bh = ext4_bread(handle, inode, blk, 1, &err); |
5382 | if (!bh) | 5382 | if (!bh) |
5383 | goto out; | 5383 | goto out; |
5384 | BUFFER_TRACE(bh, "get write access"); | ||
5384 | err = ext4_journal_get_write_access(handle, bh); | 5385 | err = ext4_journal_get_write_access(handle, bh); |
5385 | if (err) { | 5386 | if (err) { |
5386 | brelse(bh); | 5387 | brelse(bh); |
diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c index 3a5ac7cc4819..e7387337060c 100644 --- a/fs/ext4/xattr.c +++ b/fs/ext4/xattr.c | |||
@@ -516,6 +516,7 @@ static void ext4_xattr_update_super_block(handle_t *handle, | |||
516 | if (EXT4_HAS_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_EXT_ATTR)) | 516 | if (EXT4_HAS_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_EXT_ATTR)) |
517 | return; | 517 | return; |
518 | 518 | ||
519 | BUFFER_TRACE(EXT4_SB(sb)->s_sbh, "get_write_access"); | ||
519 | if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) { | 520 | if (ext4_journal_get_write_access(handle, EXT4_SB(sb)->s_sbh) == 0) { |
520 | EXT4_SET_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_EXT_ATTR); | 521 | EXT4_SET_COMPAT_FEATURE(sb, EXT4_FEATURE_COMPAT_EXT_ATTR); |
521 | ext4_handle_dirty_super(handle, sb); | 522 | ext4_handle_dirty_super(handle, sb); |
@@ -535,6 +536,7 @@ ext4_xattr_release_block(handle_t *handle, struct inode *inode, | |||
535 | struct mb_cache *ext4_mb_cache = EXT4_GET_MB_CACHE(inode); | 536 | struct mb_cache *ext4_mb_cache = EXT4_GET_MB_CACHE(inode); |
536 | 537 | ||
537 | ce = mb_cache_entry_get(ext4_mb_cache, bh->b_bdev, bh->b_blocknr); | 538 | ce = mb_cache_entry_get(ext4_mb_cache, bh->b_bdev, bh->b_blocknr); |
539 | BUFFER_TRACE(bh, "get_write_access"); | ||
538 | error = ext4_journal_get_write_access(handle, bh); | 540 | error = ext4_journal_get_write_access(handle, bh); |
539 | if (error) | 541 | if (error) |
540 | goto out; | 542 | goto out; |
@@ -777,6 +779,7 @@ ext4_xattr_block_set(handle_t *handle, struct inode *inode, | |||
777 | if (s->base) { | 779 | if (s->base) { |
778 | ce = mb_cache_entry_get(ext4_mb_cache, bs->bh->b_bdev, | 780 | ce = mb_cache_entry_get(ext4_mb_cache, bs->bh->b_bdev, |
779 | bs->bh->b_blocknr); | 781 | bs->bh->b_blocknr); |
782 | BUFFER_TRACE(bs->bh, "get_write_access"); | ||
780 | error = ext4_journal_get_write_access(handle, bs->bh); | 783 | error = ext4_journal_get_write_access(handle, bs->bh); |
781 | if (error) | 784 | if (error) |
782 | goto cleanup; | 785 | goto cleanup; |
@@ -862,6 +865,7 @@ inserted: | |||
862 | EXT4_C2B(EXT4_SB(sb), 1)); | 865 | EXT4_C2B(EXT4_SB(sb), 1)); |
863 | if (error) | 866 | if (error) |
864 | goto cleanup; | 867 | goto cleanup; |
868 | BUFFER_TRACE(new_bh, "get_write_access"); | ||
865 | error = ext4_journal_get_write_access(handle, | 869 | error = ext4_journal_get_write_access(handle, |
866 | new_bh); | 870 | new_bh); |
867 | if (error) | 871 | if (error) |