aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index b1a8149bbc84..0e1c31e682fb 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -260,6 +260,8 @@ void tree_block_release(struct ctree_root *root, struct tree_buffer *buf)
260 if (buf->count < 0) 260 if (buf->count < 0)
261 BUG(); 261 BUG();
262 if (buf->count == 0) { 262 if (buf->count == 0) {
263 BUG_ON(!list_empty(&buf->cache));
264 BUG_ON(!list_empty(&buf->dirty));
263 if (!radix_tree_lookup(&root->cache_radix, buf->blocknr)) 265 if (!radix_tree_lookup(&root->cache_radix, buf->blocknr))
264 BUG(); 266 BUG();
265 radix_tree_delete(&root->cache_radix, buf->blocknr); 267 radix_tree_delete(&root->cache_radix, buf->blocknr);