提交 353fe445 编写于 作者: A Arnd Bergmann 提交者: Darrick J. Wong

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: ebf55872 ("xfs: improve handling of busy extents in the low-level allocator")
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 93aaead5
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册