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 if (error) 455 goto out_bmap_cancel; 456 457 /* Finish up. */ 458 error = xfs_defer_finish(&tp, &dfops); 459 if (error)
··· 454 if (error) 455 goto out_bmap_cancel; 456 457 + xfs_inode_set_cowblocks_tag(ip); 458 + 459 /* Finish up. */ 460 error = xfs_defer_finish(&tp, &dfops); 461 if (error)