aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-03-30 08:47:31 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-03-30 08:47:31 -0400
commit22b0ebda6c63a1ad66b6a9e806bd226a4a03a049 (patch)
tree391d141c7c143914969a98409e72e615cdcac226 /fs/btrfs/ctree.c
parentf254e52c1ce550fdaa0d31f5e068f0d67c2485d4 (diff)
Btrfs: hunting slab corruption
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index 1eb333e2e18b..b7f3fcb72c62 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -457,6 +457,8 @@ int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
457 int ret; 457 int ret;
458 int level; 458 int level;
459 459
460 WARN_ON(p->nodes[0] != NULL);
461 WARN_ON(!mutex_is_locked(&root->fs_info->fs_mutex));
460again: 462again:
461 b = root->node; 463 b = root->node;
462 get_bh(b); 464 get_bh(b);