]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 14 May 2014 20:12:24 +0000 (16:12 -0400)
commit6397842ddac5979603ab4aaa294180e055c859e2
tree6755220d08b2937d0b7f21764bb787da38b498f6
parent4cdd2ad78098244c1bc9ec4374ea1c225fd1cd6f
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