dm btree: prefetch child nodes when walking tree for a dm_btree_del
authorJoe Thornber <ejt@redhat.com>
Fri, 9 Aug 2013 11:59:30 +0000 (12:59 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 23 Aug 2013 13:02:14 +0000 (09:02 -0400)
commit04f17c802f447e76d13ade5bb78fbbf34baef0f8
tree4bca7fac638c13e0659824e566dbd8df58f148dc
parentcd5acf0b445030cd8b5bfd818f464997652485e5
dm btree: prefetch child nodes when walking tree for a dm_btree_del

dm-btree now takes advantage of dm-bufio's ability to prefetch data via
dm_bm_prefetch().  Prior to this change many btree node visits were
causing a synchronous read.

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