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>
Showing
- drivers/md/dm-cache-block-types.h 0 additions, 11 deletionsdrivers/md/dm-cache-block-types.h
- drivers/md/dm-cache-metadata.c 17 additions, 17 deletionsdrivers/md/dm-cache-metadata.c
- drivers/md/dm-cache-metadata.h 3 additions, 3 deletionsdrivers/md/dm-cache-metadata.h
- drivers/md/dm-cache-target.c 26 additions, 46 deletionsdrivers/md/dm-cache-target.c
Loading
Please register or sign in to comment