summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rtalloc.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-02-16 17:12:51 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2017-02-16 17:20:39 -0800
commit410d17f67e583559be3a922f8b6cc336331893f3 (patch)
treecddae63f6eb11cd7b28b96f745e190350d8f3eb8 /fs/xfs/xfs_rtalloc.h
parent8ee9fdbebc84b39f1d1c201c5e32277c61d034aa (diff)
xfs: tune down agno asserts in the bmap code
In various places we currently assert that xfs_bmap_btalloc allocates from the same as the firstblock value passed in, unless it's either NULLAGNO or the dop_low flag is set. But the reflink code does not fully follow this convention as it passes in firstblock purely as a hint for the allocator without actually having previous allocations in the transaction, and without having a minleft check on the current AG, leading to the assert firing on a very full and heavily used file system. As even the reflink code only allocates from equal or higher AGs for now we can simply the check to always allow for equal or higher AGs. Note that we need to eventually split the two meanings of the firstblock value. At that point we can also allow the reflink code to allocate from any AG instead of limiting it in any way. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.h')
0 files changed, 0 insertions, 0 deletions