]> 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>
Tue, 27 May 2014 14:46:26 +0000 (10:46 -0400)
commitcc3af2849edaf48d623ce43be5fca459520c9228
tree9a3f1afd837bd943d21210d81f8571f424539c32
parent63d832c30142cdceb478b1cac7d943d83b95b2dc
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