blkdev: allow for 16bit block counts
authorAlan Cox <alan@linux.intel.com>
Sun, 21 May 2017 21:16:41 +0000 (22:16 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 21 May 2017 21:16:41 +0000 (22:16 +0100)
commitb771268a119530b711d9523644b3e619e1d1a403
treea6660a7cb02008f7000f6ae446320de43a7cf0eb
parentda1f14ee2fb7d9162e91c53233b68deab3c536dd
blkdev: allow for 16bit block counts

On a 32bit system we can end up writing more than 256 blocks in a run when
we swap so blkdev needs to use 16bits for the block counter.

(We could make this a typedef for 8 v 16bit but it's not clear it matters
 enough)
Kernel/dev/blkdev.c
Kernel/dev/blkdev.h