Skip to content

Commit 353fe44

Browse files
arndbdjwong
authored andcommitted
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: ebf5587 ("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>
1 parent 93aaead commit 353fe44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_extent_busy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ xfs_extent_busy_trim(
353353
struct rb_node *rbp;
354354
bool ret = false;
355355

356-
ASSERT(len > 0);
356+
ASSERT(*len > 0);
357357

358358
spin_lock(&args->pag->pagb_lock);
359359
restart:

0 commit comments

Comments
 (0)