OSDN Git Service

dm: change sector_count member in clone_info from sector_t to unsigned
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 14 Mar 2014 22:40:39 +0000 (18:40 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 3 Jun 2014 17:44:06 +0000 (13:44 -0400)
commite0d6609a5fe34463ae2fd48d846931f70de8b37b
tree06dedeb8a01b4cc0a658038cfc5ab4e467a8b259
parentfad01e866afdbe01a1f3ec06a39c3a8b9e197014
dm: change sector_count member in clone_info from sector_t to unsigned

It is impossible to create bios with 2^23 or more sectors (the size is
stored as a 32-bit byte count in the bio). So we convert some sector_t
values to unsigned integers.

This is needed for the next commit ("dm: introduce
dm_accept_partial_bio") that replaces integer value arguments with
pointers, so the size of the integer must match.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c