]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: fix bogus minleft manipulations
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Feb 2017 07:55:54 +0000 (08:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Feb 2017 08:47:11 +0000 (09:47 +0100)
commitc63f4d3aa09d0b8c36836a887d32cf20a974509f
treec70b434355ff486fe4014fb73974eb9a7eeda3f4
parentd20e4ad06c4be123ef350a0ca78f1480bbdc5f8e
xfs: fix bogus minleft manipulations

commit 255c516278175a6dc7037d1406307f35237d8688 upstream.

We can't just set minleft to 0 when we're low on space - that's exactly
what we need minleft for: to protect space in the AG for btree block
allocations when we are low on free space.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap_btree.c