iomap: add an iomap-based readpage and readpages implementation
authorChristoph Hellwig <hch@lst.de>
Tue, 19 Jun 2018 22:10:57 +0000 (15:10 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 19 Jun 2018 22:10:57 +0000 (15:10 -0700)
commit72b4daa241295440f98e80ae21294a67b27ca091
treeb9a81093b52ce764bc8f2d76296c157ddeacb752
parente184fde6f3f5353040dd4b5637f823fc87436e55
iomap: add an iomap-based readpage and readpages implementation

Simply use iomap_apply to iterate over the file and a submit a bio for
each non-uptodate but mapped region and zero everything else.  Note that
as-is this can not be used for file systems with a blocksize smaller than
the page size, but that support will be added later.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c
include/linux/iomap.h