]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: refactor iomap_dio_actor
authorChristoph Hellwig <hch@lst.de>
Tue, 3 Jul 2018 16:07:46 +0000 (09:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 3 Jul 2018 16:07:46 +0000 (09:07 -0700)
commit183ffa37bccf4d69d752e19f11c90b283588ed18
tree1b2b173a11eafef9a31341a6032129b1dca6eec4
parent18c2f23f8578e7f5f3095c5deeaef2da8f9cfa51
iomap: refactor iomap_dio_actor

Split the function up into two helpers for the bio based I/O and hole
case, and a small helper to call the two.  This separates the code a
little better in preparation for supporting I/O to inline data.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c