]> asedeno.scripts.mit.edu Git - linux.git/commit
xfs: fix len comparison in xfs_extent_busy_trim
authorArnd Bergmann <arnd@arndb.de>
Wed, 15 Feb 2017 02:16:50 +0000 (18:16 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 17 Feb 2017 01:20:12 +0000 (17:20 -0800)
commit353fe445f5efd58dfec6e06bf4747a9c28374adc
tree0c2daf5a6e00086054bd865050914490f1dc2fc6
parent93aaead52a9eebdc20dc8fa673c350e592a06949
xfs: fix len comparison in xfs_extent_busy_trim

The length is now passed by reference, so the assertion has to be updated
to match the other changes, as pointed out by this W=1 warning:

fs/xfs/xfs_extent_busy.c: In function 'xfs_extent_busy_trim':
fs/xfs/xfs_extent_busy.c:356:13: error: ordered comparison of pointer with integer zero [-Werror=extra]

Fixes: ebf55872616c ("xfs: improve handling of busy extents in the low-level allocator")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-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>
fs/xfs/xfs_extent_busy.c