]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: set cowblocks tag for direct cow writes too
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 14 Dec 2017 23:46:06 +0000 (15:46 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 21 Dec 2017 16:47:37 +0000 (08:47 -0800)
commit4ef7d2f01cc228eca569f2b531602af4614be4fd
treeacd6e1b0bbf99471cb783be8183077aa298841ba
parent6ad50635473fa3024aaeaef8832daead6c1834d0
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>
fs/xfs/xfs_reflink.c