]> 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)
commitc0d0601b76f31356643f53cc408a49f3098a30d4
tree0ecc36238400c974a6c94eee6cda7288d494f515
parentac4c6d48613cb9ce87db77dc595942e250baddc6
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