OSDN Git Service

Btrfs: add helper for tree enumeration
authorArne Jansen <sensille@gmx.net>
Tue, 13 Sep 2011 09:18:10 +0000 (11:18 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Tue, 10 Jul 2012 13:14:42 +0000 (15:14 +0200)
commit2f38b3e1900634e64a186873b3388b1bf85dabc0
tree21017a51174be9ba31696e4e4c8daa18ce2d59f8
parent630dc772ea51bca3ec6fac609f450cbe0cafd1d6
Btrfs: add helper for tree enumeration

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 <sensille@gmx.net>
fs/btrfs/ctree.c
fs/btrfs/ctree.h