]> 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)
commite6f63050ee35e388af16366b9e7e8518c5536b78
treeaa722afa19ce30a6cf62a3f7814f2d0052f13391
parent8481644facd8d1a34aeaf2684916f60da167de1b
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