]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: policy ignore hints if generated by different version
authorMike Snitzer <snitzer@redhat.com>
Wed, 20 Mar 2013 17:21:28 +0000 (17:21 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Wed, 20 Mar 2013 17:21:28 +0000 (17:21 +0000)
commitaa6a71c3b14ff5b9f500ae4c3103c46c9e41d28e
tree938398729161784ad0157dc94edaed1f9e9792a3
parente4d9675bc7ab6d363df5d75670b9d0829f5ed8c0
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>
drivers/md/dm-cache-metadata.c
drivers/md/dm-cache-metadata.h
drivers/md/dm-cache-target.c