Remove unused btree internal WALK_NEXT

In the past the WALK_NEXT enum was used to tell the walking core that
the caller was iterating and that they'd need to advance to sibling
blocks if their key landed off the end of a leaf.  In the current code
that's now handled by giving the walk caller a next_key which will
continue the search from the next leaf.  WALK_NEXT is unused and we can
remove it.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-10-21 13:03:06 -07:00
parent 1cbd84eece
commit f32365321d

View File

@@ -879,7 +879,6 @@ static struct buffer_head *try_merge(struct super_block *sb,
enum {
WALK_INSERT = 1,
WALK_DELETE,
WALK_NEXT,
WALK_NEXT_SEQ,
WALK_DIRTY,
};
@@ -1400,8 +1399,7 @@ int scoutfs_btree_next(struct super_block *sb, struct scoutfs_btree_root *root,
{
trace_scoutfs_btree_next(sb, first, last);
return btree_next(sb, root, first, last, 0, WALK_NEXT,
found, NULL, val);
return btree_next(sb, root, first, last, 0, 0, found, NULL, val);
}
int scoutfs_btree_since(struct super_block *sb,