]> git.baikalelectronics.ru Git - kernel.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)
commit2328e1cb83e909cae8e5960c95853d622409c76a
treeaa722afa19ce30a6cf62a3f7814f2d0052f13391
parenta27f06bf8e3409c1fec1899ae1ff106be289024e
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