summaryrefslogtreecommitdiff
path: root/drivers/md/dm-cache-metadata.h
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2013-03-20 21:21:28 +0400
committerAlasdair G Kergon <agk@redhat.com>2013-03-20 21:21:28 +0400
commitea2dd8c1ed0becee9812cf0840a9cd553ed398fe (patch)
tree938398729161784ad0157dc94edaed1f9e9792a3 /drivers/md/dm-cache-metadata.h
parent4e7f506f6429636115e2f58f9f97089acc62524a (diff)
downloadlinux-ea2dd8c1ed0becee9812cf0840a9cd553ed398fe.tar.xz
dm cache: policy ignore hints if generated by different version
When reading the dm cache metadata from disk, ignore the policy hints unless they were generated by the same major version number of the same policy module. The hints are considered to be private data belonging to the specific module that generated them and there is no requirement for them to make sense to different versions of the policy that generated them. Policy modules are all required to work fine if no previous hints are supplied (or if existing hints are lost). Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-metadata.h')
-rw-r--r--drivers/md/dm-cache-metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-metadata.h b/drivers/md/dm-cache-metadata.h
index 135864ea0eee..f45cef21f3d0 100644
--- a/drivers/md/dm-cache-metadata.h
+++ b/drivers/md/dm-cache-metadata.h
@@ -89,7 +89,7 @@ typedef int (*load_mapping_fn)(void *context, dm_oblock_t oblock,
dm_cblock_t cblock, bool dirty,
uint32_t hint, bool hint_valid);
int dm_cache_load_mappings(struct dm_cache_metadata *cmd,
- const char *policy_name,
+ struct dm_cache_policy *policy,
load_mapping_fn fn,
void *context);