dm cache metadata: use dm-space-map-metadata.h defined size limits
authorMike Snitzer <snitzer@redhat.com>
Mon, 14 Jul 2014 19:37:18 +0000 (15:37 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 1 Aug 2014 16:30:33 +0000 (12:30 -0400)
commit895b47d7989af3aacea16380b190b1bb8f046362
treeff1fa6f0a86063b69d09a76acc6d996face2acdc
parent304affaa88328fe8f40ff14f5e6ccbfad8f121eb
dm cache metadata: use dm-space-map-metadata.h defined size limits

Commit 7d48935e cleaned up the persistent-data's space-map-metadata
limits by elevating them to dm-space-map-metadata.h.  Update
dm-cache-metadata to use these same limits.

The calculation for DM_CACHE_METADATA_MAX_SECTORS didn't account for the
sizeof the disk_bitmap_header.  So the supported maximum metadata size
is a bit smaller (reduced from 33423360 to 33292800 sectors).

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
drivers/md/dm-cache-metadata.c
drivers/md/dm-cache-metadata.h
drivers/md/dm-cache-target.c