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 | 02217ed299c6340a35696e0610047eb96826de2d (patch) | |
tree | 4a92c16ce2a51f701c829d96f644486fb7b29517 /fs/btrfs/disk-io.c | |
parent | 77ce6846c40e83193df01295e5af437f8b6c7a2d (diff) |
Btrfs: early reference counting
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 2 |
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); |