]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfc32d2d27bd3bc2310f596ad2ea94cf1c6aeaab8
treeb9a81093b52ce764bc8f2d76296c157ddeacb752
parentccc2d7e6de59770922b33a5c8609b4881b876c5c
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