]> asedeno.scripts.mit.edu Git - linux.git/commit
iomap: use write_begin to read pages to unshare
authorChristoph Hellwig <hch@lst.de>
Fri, 18 Oct 2019 23:42:50 +0000 (16:42 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Oct 2019 15:51:59 +0000 (08:51 -0700)
commit32a38a4991043976fc2d8840a55ce5dde41fdbd0
treeaa722afa19ce30a6cf62a3f7814f2d0052f13391
parentd3b404396977fde1daca3fb4fd4d3b01a3749093
iomap: use write_begin to read pages to unshare

Use the existing iomap write_begin code to read the pages unshared
by iomap_file_unshare.  That avoids the extra ->readpage call and
extent tree lookup currently done by read_mapping_page.

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