summaryrefslogtreecommitdiffstats
path: root/fs/file.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew.r.wilcox@intel.com>2015-01-07 18:05:34 +0200
committerJens Axboe <axboe@fb.com>2015-01-13 21:58:11 -0700
commitdd22f551ac0ad366f92f601835f6623b83adc331 (patch)
tree47f6c4f274b3b6989869734b32afdc2e5d85769d /fs/file.c
parentc761d96b079e99d106fa4064e730ef7d0f312f9d (diff)
downloadlinux-stable-dd22f551ac0ad366f92f601835f6623b83adc331.tar.gz
linux-stable-dd22f551ac0ad366f92f601835f6623b83adc331.tar.bz2
linux-stable-dd22f551ac0ad366f92f601835f6623b83adc331.zip
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>
Diffstat (limited to 'fs/file.c')
0 files changed, 0 insertions, 0 deletions