dm btree: add dm_btree_find_lowest_key
authorJoe Thornber <ejt@redhat.com>
Fri, 20 Dec 2013 15:41:11 +0000 (15:41 +0000)
committerMike Snitzer <snitzer@redhat.com>
Thu, 9 Jan 2014 21:29:17 +0000 (16:29 -0500)
commitf164e6900f2be2c29f5c11ca52af5bb824f40826
treef727095ad5fdbbc79c34796a1c7e79abc29456f5
parent7e664b3dec431eebf0c5df5ff704d6197634cf35
dm btree: add dm_btree_find_lowest_key

dm_btree_find_lowest_key is the reciprocal of dm_btree_find_highest_key.
Factor out common code for dm_btree_find_{highest,lowest}_key.

dm_btree_find_lowest_key is needed for an upcoming DM target, as such it
is best to get this interface in place.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-btree.c
drivers/md/persistent-data/dm-btree.h