]> git.ipfire.org Git - people/ms/linux.git/commit - fs/btrfs/ctree.c
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)
commite679376911d016b670c8cfc1645c178f77e8d1d3
tree0ecc36238400c974a6c94eee6cda7288d494f515
parent362a20c5e27614739c46707d1c5f55c214d164ce
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