Message ID | 20181119134619.16812-2-hch@lst.de (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [1/9] xfs: fix shared extent data corruption due to missing cow reservation | expand |
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index bd9135afe3f4..bfa489c8799f 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -296,6 +296,7 @@ xfs_reflink_reserve_cow( if (error) return error; + xfs_trim_extent(imap, got.br_startoff, got.br_blockcount); trace_xfs_reflink_cow_alloc(ip, &got); return 0; }