]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix incorrect test in xfs_alloc_ag_vextent_lastblock
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 13 Mar 2020 20:57:58 +0000 (13:57 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 17 Mar 2020 14:32:46 +0000 (07:32 -0700)
commit2cdf4a519b309b746bf4344c5a56ebff3d5bcb40
tree78426afb8ce6a81f34eb651ec5c6eaae26d49ca3
parent9c1fd46dc29e381fdc036b33e2b6f2845b4c6dd5
xfs: fix incorrect test in xfs_alloc_ag_vextent_lastblock

When I lifted the code in xfs_alloc_ag_vextent_lastblock out of a loop,
I forgot to convert all the accesses to len to be pointer dereferences.

Coverity-id: 1457918
Fixes: 655ffbc0e23c42 ("xfs: clean up weird while loop in xfs_alloc_ag_vextent_near")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_alloc.c