Joseph Qi 30dd3478c3 ocfs2: correctly use ocfs2_find_next_zero_bit()
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>
2024-04-25 21:07:01 -07:00
..
2023-01-19 09:24:27 +01:00
2023-12-29 11:58:35 -08:00
2024-02-22 15:38:51 -08:00
2023-11-16 11:59:19 -06:00
2022-07-29 18:12:36 -07:00
2023-04-21 14:54:34 -07:00
2023-08-02 09:13:09 -06:00
2018-12-28 12:11:45 -08:00
2022-05-09 16:21:46 -04:00
2023-10-30 09:47:13 -10:00