summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_reflink.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-09 10:35:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-09 10:35:13 +0100
commit57cde551225bb09fa40ca3938e06d59fc529ff90 (patch)
tree1c39f6262c41565add24374503a1c1ffe4bc12d3 /fs/xfs/xfs_reflink.c
parent9e39aef3a105d3c934d9348cc27f1ccfd9ebee01 (diff)
parentf8394f232b1eab649ce2df5c5f15b0e528c92091 (diff)
Merge 5.10-rc3 into usb-next
We need the USB fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
-rw-r--r--fs/xfs/xfs_reflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c
index 16098dc42addb..6fa05fb78189b 100644
--- a/fs/xfs/xfs_reflink.c
+++ b/fs/xfs/xfs_reflink.c
@@ -1502,7 +1502,8 @@ xfs_reflink_unshare(
&xfs_buffered_write_iomap_ops);
if (error)
goto out;
- error = filemap_write_and_wait(inode->i_mapping);
+
+ error = filemap_write_and_wait_range(inode->i_mapping, offset, len);
if (error)
goto out;