diff options
author | Joe Thornber <ejt@redhat.com> | 2013-08-09 11:59:30 (GMT) |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2013-08-23 13:02:14 (GMT) |
commit | 04f17c802f447e76d13ade5bb78fbbf34baef0f8 (patch) | |
tree | 4bca7fac638c13e0659824e566dbd8df58f148dc /drivers/md/persistent-data/dm-block-manager.h | |
parent | cd5acf0b445030cd8b5bfd818f464997652485e5 (diff) | |
download | linux-fsl-qoriq-04f17c802f447e76d13ade5bb78fbbf34baef0f8.tar.xz |
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>
Diffstat (limited to 'drivers/md/persistent-data/dm-block-manager.h')
-rw-r--r-- | drivers/md/persistent-data/dm-block-manager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/persistent-data/dm-block-manager.h b/drivers/md/persistent-data/dm-block-manager.h index be5bff6..9a82083 100644 --- a/drivers/md/persistent-data/dm-block-manager.h +++ b/drivers/md/persistent-data/dm-block-manager.h @@ -108,6 +108,11 @@ int dm_bm_unlock(struct dm_block *b); int dm_bm_flush_and_unlock(struct dm_block_manager *bm, struct dm_block *superblock); + /* + * Request data be prefetched into the cache. + */ +void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b); + /* * Switches the bm to a read only mode. Once read-only mode * has been entered the following functions will return -EPERM. |