dm snapshot: use unsigned integer chunk size
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 16 Oct 2009 22:18:17 +0000 (23:18 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 16 Oct 2009 22:18:17 +0000 (23:18 +0100)
commitdf96eee679ba28c98cf722fa7c9f4286ee1ed0bd
tree282c1368f3dff6ed0e0994210cc13c09b4680d66
parent4c6fff445d7aa753957856278d4d93bcad6e2c14
dm snapshot: use unsigned integer chunk size

Use unsigned integer chunk size.

Maximum chunk size is 512kB, there won't ever be need to use 4GB chunk size,
so the number can be 32-bit. This fixes compiler failure on 32-bit systems
with large block devices.

Cc: stable@kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-exception-store.c
drivers/md/dm-exception-store.h
drivers/md/dm-snap-persistent.c
drivers/md/dm-snap.c