]> asedeno.scripts.mit.edu Git - linux.git/commit
iomap: warn on inline maps in iomap_writepage_map
authorChristoph Hellwig <hch@lst.de>
Thu, 17 Oct 2019 20:12:17 +0000 (13:12 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 15:51:59 +0000 (08:51 -0700)
commit3e19e6f3eeea26490a84cdd18c7220e640f4837e
tree35d0a98e33851bc5fb975a840c1bed11533e136c
parent598ecfbaa742aca0dcdbbea25681406f95cc0b63
iomap: warn on inline maps in iomap_writepage_map

And inline mapping should never mark the page dirty and thus never end up
in writepages.  Add a check for that condition and warn if it happens.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap/buffered-io.c