aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/disk-io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index f4e708239c09..e54f0cd5cdf6 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3738,6 +3738,12 @@ void btrfs_mark_buffer_dirty(struct extent_buffer *buf)
3738 __percpu_counter_add(&root->fs_info->dirty_metadata_bytes, 3738 __percpu_counter_add(&root->fs_info->dirty_metadata_bytes,
3739 buf->len, 3739 buf->len,
3740 root->fs_info->dirty_metadata_batch); 3740 root->fs_info->dirty_metadata_batch);
3741#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
3742 if (btrfs_header_level(buf) == 0 && check_leaf(root, buf)) {
3743 btrfs_print_leaf(root, buf);
3744 ASSERT(0);
3745 }
3746#endif
3741} 3747}
3742 3748
3743static void __btrfs_btree_balance_dirty(struct btrfs_root *root, 3749static void __btrfs_btree_balance_dirty(struct btrfs_root *root,