]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: add helper for tree enumeration
authorArne Jansen <sensille@gmx.net>
Tue, 13 Sep 2011 09:18:10 +0000 (11:18 +0200)
committerAlexander Block <ablock84@googlemail.com>
Wed, 25 Jul 2012 15:33:18 +0000 (17:33 +0200)
commitefa4e7e92cdff38aecb518ce19ab57f0d3de5e47
tree0ecc36238400c974a6c94eee6cda7288d494f515
parentd35b478843cb01d5f3a093d6a0af10af5fd8842b
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