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)
commit09230435dffdb13de507e5e40b524b0069fc5c7b
tree1b2b173a11eafef9a31341a6032129b1dca6eec4
parentc03cea42149de56fbae2301d7123daaa2cfe80e2
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