Matthew Wilcox dd22f551ac block: Change direct_access calling convention
In order to support accesses to larger chunks of memory, pass in a
'size' parameter (counted in bytes), and return the amount available at
that address.

Add a new helper function, bdev_direct_access(), to handle common
functionality including partition handling, checking the length requested
is positive, checking for the sector being page-aligned, and checking
the length of the request does not pass the end of the partition.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Boaz Harrosh <boaz@plexistor.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-01-13 21:58:11 -07:00
..
2014-12-14 16:10:09 -08:00
2014-12-11 17:48:14 -08:00
2010-03-04 10:43:58 -06:00
2013-10-09 20:04:11 -05:00
2014-03-04 17:37:51 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-12-11 17:48:14 -08:00
2014-12-11 17:48:14 -08:00
2013-10-09 20:04:11 -05:00
2014-12-14 16:10:09 -08:00
2013-10-09 20:04:11 -05:00
2013-11-06 14:13:50 +11:00
2014-09-25 23:14:46 +10:00