Btrfs: hunting slab corruption

Signed-off-by: Chris Mason <chris.mason@oracle.com>
This commit is contained in:
Chris Mason
2007-03-30 08:47:31 -04:00
committed by David Woodhouse
parent f254e52c1c
commit 22b0ebda6c
5 changed files with 27 additions and 6 deletions

View File

@@ -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);