summaryrefslogtreecommitdiff
path: root/drivers/md/persistent-data/dm-transaction-manager.h
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2014-10-06 18:27:26 +0400
committerMike Snitzer <snitzer@redhat.com>2014-11-10 23:25:26 +0300
commit4646015d7e4ca5a4dc19427fb0a0aeff15a4fd91 (patch)
tree5afe82e874f9eff6eeb70e77db458b22dcea3307 /drivers/md/persistent-data/dm-transaction-manager.h
parente5cfc69a513cdc9d9e753c5ce07f0cc6b496bfd3 (diff)
downloadlinux-4646015d7e4ca5a4dc19427fb0a0aeff15a4fd91.tar.xz
dm transaction manager: add support for prefetching blocks of metadata
Introduce the dm_tm_issue_prefetches interface. If you're using a non-blocking clone the tm will build up a list of requested blocks that weren't in core. dm_tm_issue_prefetches will request those blocks to be prefetched. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/persistent-data/dm-transaction-manager.h')
-rw-r--r--drivers/md/persistent-data/dm-transaction-manager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/persistent-data/dm-transaction-manager.h b/drivers/md/persistent-data/dm-transaction-manager.h
index 2772ed2a781a..2e0d4d66fb1b 100644
--- a/drivers/md/persistent-data/dm-transaction-manager.h
+++ b/drivers/md/persistent-data/dm-transaction-manager.h
@@ -109,6 +109,13 @@ int dm_tm_ref(struct dm_transaction_manager *tm, dm_block_t b,
struct dm_block_manager *dm_tm_get_bm(struct dm_transaction_manager *tm);
/*
+ * If you're using a non-blocking clone the tm will build up a list of
+ * requested blocks that weren't in core. This call will request those
+ * blocks to be prefetched.
+ */
+void dm_tm_issue_prefetches(struct dm_transaction_manager *tm);
+
+/*
* A little utility that ties the knot by producing a transaction manager
* that has a space map managed by the transaction manager...
*