Files
linux/fs
Joseph Qi f2fc7dd801 ocfs2: correctly use ocfs2_find_next_zero_bit()
[ Upstream commit 30dd3478c3 ]

If no bits are zero, ocfs2_find_next_zero_bit() will return max size, so
check the return value with -1 is meaningless.  Correct this usage and
cleanup the code.

Link: https://lkml.kernel.org/r/20240314021713.240796-1-joseph.qi@linux.alibaba.com
Signed-off-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: Heming Zhao <heming.zhao@suse.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Changwei Ge <gechangwei@live.cn>
Cc: Gang He <ghe@suse.com>
Cc: Jun Piao <piaojun@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 28d2188709 ("selftests/harness: use 1024 in place of LINE_MAX")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-06-12 11:39:25 +02:00
..
2024-04-22 15:34:27 +00:00
2024-03-27 13:17:15 +01:00
2024-05-30 09:44:24 +02:00
2023-12-29 11:58:34 -08:00
2024-03-27 13:17:15 +01:00
2024-05-30 09:44:04 +02:00
2024-03-27 13:17:15 +01:00
2024-03-27 13:17:15 +01:00
2024-03-06 10:52:12 +01:00
2024-05-30 09:44:56 +02:00
2023-12-12 14:24:14 +01:00
2024-03-13 12:53:53 -07:00
2024-05-30 09:44:06 +02:00
2024-03-13 12:53:53 -07:00
2024-03-13 12:53:53 -07:00
2024-02-02 13:11:49 +01:00
2024-03-27 13:17:15 +01:00
2024-02-15 23:43:47 -05:00