diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-02 16:08:05 -0500 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-02 16:08:05 -0500 |
commit | 7da449a2f634d1807a5aaa8cd8dceb360032343e (patch) | |
tree | 0e24fc3d477ed17dd7f127022dddc55f30b8a782 /disk-io.c | |
parent | bd530a2cff3945b4f79f591f936315b9f6d2929f (diff) |
early reference counting
Diffstat (limited to 'disk-io.c')
-rw-r--r-- | disk-io.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |