]> asedeno.scripts.mit.edu Git - linux.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)
commit598ecfbaa742aca0dcdbbea25681406f95cc0b63
tree98a11adfe62fdf73c774cd21b2b0b737251b915c
parent9e91c5728cab3d0aa3197d009c3d63e147914e77
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