diff options
author | Darrick J. Wong | 2017-12-14 15:46:06 -0800 |
---|---|---|
committer | Darrick J. Wong | 2017-12-21 08:47:37 -0800 |
commit | 86d692bfad1b0097fa866f5fcfa5f5adf4cd82e8 (patch) | |
tree | acd6e1b0bbf99471cb783be8183077aa298841ba /fs | |
parent | 10ddf64e420f7f6c1a871bfb4ff2de08faef8235 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_reflink.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index e49e6db415f7..47aea2e82c26 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -454,6 +454,8 @@ retry: if (error) goto out_bmap_cancel; + xfs_inode_set_cowblocks_tag(ip); + /* Finish up. */ error = xfs_defer_finish(&tp, &dfops); if (error) |