]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_iomap.c
Merge tag 'gfs2-for-5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2...
[linux.git] / fs / xfs / xfs_iomap.c
index 28e2d1f37267d49d6abd8e5faa07f5401c856e64..bb590a267a7f92a2a8ebf43592fd9aec4ca3e81f 100644 (file)
@@ -923,7 +923,7 @@ xfs_buffered_write_iomap_begin(
                xfs_trim_extent(&imap, offset_fsb, end_fsb - offset_fsb);
 
                /* Trim the mapping to the nearest shared extent boundary. */
-               error = xfs_inode_need_cow(ip, &imap, &shared);
+               error = xfs_bmap_trim_cow(ip, &imap, &shared);
                if (error)
                        goto out_unlock;