From: Matthew Wilcox Date: Wed, 7 Jan 2015 16:05:34 +0000 (+0200) Subject: block: Change direct_access calling convention X-Git-Tag: fixes-v4.0-rc1~117^2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd22f551ac0ad366f92f601835f6623b83adc331;p=pandora-kernel.git 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 Reviewed-by: Jan Kara Reviewed-by: Boaz Harrosh Signed-off-by: Jens Axboe --- Reading git-diff-tree failed