dm cache: remove remainder of distinct discard block size
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 27 Mar 2014 19:14:10 +0000 (15:14 -0400)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:23 +0000 (16:56 -0400)
commit64ab346a360a4b15c28fb8531918d4a01f4eabd9
tree7b1902c2b9c5980b7a18ea8f7e7a4cc633911804
parentd132cc6d9e92424bb9d4fd35f5bd0e55d583f4be
dm cache: remove remainder of distinct discard block size

Discard block size not being equal to cache block size causes data
corruption by erroneously avoiding migrations in issue_copy() because
the discard state is being cleared for a group of cache blocks when it
should not.

Completely remove all code that enabled a distinction between the
cache block size and discard block size.

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-block-types.h
drivers/md/dm-cache-metadata.c
drivers/md/dm-cache-metadata.h
drivers/md/dm-cache-target.c