xfs: set cowblocks tag for direct cow writes too

If a user performs a direct CoW write, we end up loading the CoW fork
with preallocated extents. Therefore, we must set the cowblocks tag so
that they can be cleared out if we run low on space.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>

+2
+2
fs/xfs/xfs_reflink.c
··· 454 454 if (error) 455 455 goto out_bmap_cancel; 456 456 457 + xfs_inode_set_cowblocks_tag(ip); 458 + 457 459 /* Finish up. */ 458 460 error = xfs_defer_finish(&tp, &dfops); 459 461 if (error)