ocfs2: truncate page cache for clone destination file before remapping
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Oct 2018 23:42:56 +0000 (10:42 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Oct 2018 23:42:56 +0000 (10:42 +1100)
commit2587b1f1fae2d992de67e57b519f36e7c9ba70cd
tree6ba10076889122b14e81806f75db884e5bbf0538
parent8c5c836bd6c3b9f9fc1c5a210d630b8c42f4f7df
ocfs2: truncate page cache for clone destination file before remapping

When cloning blocks into another file, truncate the page cache before we
start remapping blocks so that concurrent reads wait for us to finish.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/ocfs2/refcounttree.c