Re: [PATCH v1 04/15] Btrfs: add helper for tree enumeration

2012-07-12 Thread Alexander Block
On Thu, Jul 12, 2012 at 11:43 AM, Jan Schmidt wrote: > From: Arne Jansen > > Often no exact match is wanted but just the next lower or > higher item. There's a lot of duplicated code throughout > btrfs to deal with the corner cases. This patch adds a > helper function that can facilitate searchin

[PATCH v1 04/15] Btrfs: add helper for tree enumeration

2012-07-12 Thread Jan Schmidt
From: Arne Jansen Often no exact match is wanted but just the next lower or higher item. There's a lot of duplicated code throughout btrfs to deal with the corner cases. This patch adds a helper function that can facilitate searching. Signed-off-by: Arne Jansen --- fs/btrfs/ctree.c | 72