summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_extent_busy.c
diff options
context:
space:
mode:
authorArnd Bergmann2017-02-15 03:16:50 +0100
committerDarrick J. Wong2017-02-17 02:20:12 +0100
commit353fe445f5efd58dfec6e06bf4747a9c28374adc (patch)
tree0c2daf5a6e00086054bd865050914490f1dc2fc6 /fs/xfs/xfs_extent_busy.c
parentxfs: fix uninitialized variable in _reflink_convert_cow (diff)
downloadkernel-qcow2-linux-353fe445f5efd58dfec6e06bf4747a9c28374adc.tar.gz
kernel-qcow2-linux-353fe445f5efd58dfec6e06bf4747a9c28374adc.tar.xz
kernel-qcow2-linux-353fe445f5efd58dfec6e06bf4747a9c28374adc.zip
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>
Diffstat (limited to 'fs/xfs/xfs_extent_busy.c')
-rw-r--r--fs/xfs/xfs_extent_busy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_extent_busy.c b/fs/xfs/xfs_extent_busy.c
index ab062610234e..77760dbf0242 100644
--- a/fs/xfs/xfs_extent_busy.c
+++ b/fs/xfs/xfs_extent_busy.c
@@ -353,7 +353,7 @@ xfs_extent_busy_trim(
struct rb_node *rbp;
bool ret = false;
- ASSERT(len > 0);
+ ASSERT(*len > 0);
spin_lock(&args->pag->pagb_lock);
restart: