]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't allow reflink when the AG is low on space
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:45 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Oct 2016 23:26:27 +0000 (16:26 -0700)
commita7dda7e30e1f68ea01b2b5ec1eef6807e8fef784
tree62b863d4de68d47af16edcfac1e2a5fa0b2f437f
parent7631f4ec4f1ac9eb78b5e119ada3600ba6998e8f
xfs: don't allow reflink when the AG is low on space

If the AG free space is down to the reserves, refuse to reflink our
way out of space.  Hopefully userspace will make a real copy and/or go
elsewhere.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_reflink.c