Commit a192de26 authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: allow CoW remap transactions to use reserve blocks

Since we as yet have no way of holding on to the indlen blocks that are
reserved as part of CoW fork delalloc reservations, let the CoW remap
transaction dip into the reserves so that we avoid failing writes.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 9d40fba8
...@@ -729,7 +729,7 @@ xfs_reflink_end_cow( ...@@ -729,7 +729,7 @@ xfs_reflink_end_cow(
(unsigned int)(end_fsb - offset_fsb), (unsigned int)(end_fsb - offset_fsb),
XFS_DATA_FORK); XFS_DATA_FORK);
error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write, error = xfs_trans_alloc(ip->i_mount, &M_RES(ip->i_mount)->tr_write,
resblks, 0, 0, &tp); resblks, 0, XFS_TRANS_RESERVE, &tp);
if (error) if (error)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment