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>
Loading
-
mentioned in commit 0bbe646a
-
mentioned in commit 0b41ecb5
-
mentioned in commit 7faebe69
-
mentioned in commit d3ee68fd
-
mentioned in commit 1eb970ca
-
mentioned in commit b9a8b282
-
mentioned in commit 969ee61a
-
mentioned in commit 1b569101
-
mentioned in commit 89236868
-
mentioned in commit 4ed23e9d
-
mentioned in commit 81d2c596
-
mentioned in commit 3e26e24a
-
mentioned in commit 49e04b3d
-
mentioned in commit 895084d2
-
mentioned in commit fec4abe3
-
mentioned in commit 14347e0e
-
mentioned in commit 69860ca0
Please register or sign in to comment