summaryrefslogtreecommitdiff
path: root/disk-io.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-02 16:08:05 -0500
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-02 16:08:05 -0500
commit7da449a2f634d1807a5aaa8cd8dceb360032343e (patch)
tree0e24fc3d477ed17dd7f127022dddc55f30b8a782 /disk-io.c
parentbd530a2cff3945b4f79f591f936315b9f6d2929f (diff)
early reference counting
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-io.c b/disk-io.c
index b1a8149b..0e1c31e6 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -260,6 +260,8 @@ void tree_block_release(struct ctree_root *root, struct tree_buffer *buf)
if (buf->count < 0)
BUG();
if (buf->count == 0) {
+ BUG_ON(!list_empty(&buf->cache));
+ BUG_ON(!list_empty(&buf->dirty));
if (!radix_tree_lookup(&root->cache_radix, buf->blocknr))
BUG();
radix_tree_delete(&root->cache_radix, buf->blocknr);