diff options
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
| -rw-r--r-- | fs/xfs/xfs_reflink.c | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index cb0edb1d68ef..db70060e7bf6 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -749,7 +749,10 @@ xfs_reflink_end_cow(  }  /* - * Free leftover CoW reservations that didn't get cleaned out. + * Free all CoW staging blocks that are still referenced by the ondisk refcount + * metadata.  The ondisk metadata does not track which inode created the + * staging extent, so callers must ensure that there are no cached inodes with + * live CoW staging extents.   */  int  xfs_reflink_recover_cow( @@ -1269,8 +1272,7 @@ xfs_reflink_zero_posteof(  		return 0;  	trace_xfs_zero_eof(ip, isize, pos - isize); -	return iomap_zero_range(VFS_I(ip), isize, pos - isize, NULL, -			&xfs_buffered_write_iomap_ops); +	return xfs_zero_range(ip, isize, pos - isize, NULL);  }  /*  |