search for: btrfs_bin_search

Displaying 2 results from an estimated 2 matches for "btrfs_bin_search".

2011 Jan 28
0
[PATCH] ctree code cleanups
The following has been done as a part of cleanup - o Eliminated bin_search() by replacing with btrfs_bin_search() o Eliminated unused return value in fixup_low_keys() o Eliminated additional variable (sret) in setup_nodes_for_search() Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.de> --- ctree.c | 71 ++++++++++++++++++---------------------------------------------- 1 file changed, 20 insertions(+...
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
...ot->reloc_root != reloc_root); ret = merge_reloc_root(rc, root); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); } else { list_del_init(&reloc_root->root_list); } @@ -2465,7 +2465,7 @@ static int do_relocation(struct btrfs_trans_handle *trans, if (!lowest) { ret = btrfs_bin_search(upper->eb, key, upper->level, &slot); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); bytenr = btrfs_node_blockptr(upper->eb, slot); if (node->eb->start == bytenr) goto next; @@ -2496,7 +2496,7 @@ static int do_relocation(struct btrfs_trans_handle...