]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: lift the xfs writeback code to iomap
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Oct 2019 20:12:15 +0000 (13:12 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 15:51:59 +0000 (08:51 -0700)
commitf30e0c27a0106e40cb891a3ad2d70e3c7bf92d8b
tree98a11adfe62fdf73c774cd21b2b0b737251b915c
parent76df857a5689372ac166edbbdb61c447ff7750dc
iomap: lift the xfs writeback code to iomap

Take the xfs writeback code and move it to fs/iomap.  A new structure
with three methods is added as the abstraction from the generic writeback
code to the file system.  These methods are used to map blocks, submit an
ioend, and cancel a page that encountered an error before it was added to
an ioend.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[darrick: rename ->submit_ioend to ->prepare_ioend to clarify what it
does]
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/iomap/buffered-io.c
fs/iomap/trace.h
fs/xfs/xfs_aops.c
fs/xfs/xfs_aops.h
fs/xfs/xfs_super.c
fs/xfs/xfs_trace.h
include/linux/iomap.h