mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
xfs: clean up the error handling in xfs_swap_extents
[ Upstream commit8bc3b5e4b7] Make sure we release resources properly if we cannot clean out the COW extents in preparation for an extent swap. Fixes:96987eea53("xfs: cancel COW blocks before swapext") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a8696209ca
commit
c69572fd2a
@@ -1823,7 +1823,7 @@ xfs_swap_extents(
|
||||
if (xfs_inode_has_cow_data(tip)) {
|
||||
error = xfs_reflink_cancel_cow_range(tip, 0, NULLFILEOFF, true);
|
||||
if (error)
|
||||
return error;
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user