diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-03-30 08:47:31 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-03-30 08:47:31 -0400 |
commit | 22b0ebda6c63a1ad66b6a9e806bd226a4a03a049 (patch) | |
tree | 391d141c7c143914969a98409e72e615cdcac226 /fs/btrfs/ctree.c | |
parent | f254e52c1ce550fdaa0d31f5e068f0d67c2485d4 (diff) | |
download | lwn-22b0ebda6c63a1ad66b6a9e806bd226a4a03a049.tar.gz lwn-22b0ebda6c63a1ad66b6a9e806bd226a4a03a049.zip |
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.c | 2 |
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 int ret; int level; + WARN_ON(p->nodes[0] != NULL); + WARN_ON(!mutex_is_locked(&root->fs_info->fs_mutex)); again: b = root->node; get_bh(b); |