ocfs2: use the bitmap API to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 21 Jul 2022 20:49:37 +0000 (22:49 +0200)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:12:36 +0000 (18:12 -0700)
commit702f3cf374b85d2e77431c80e870ee31ea03cdd8
tree46b5814a7e14fec00da4ae54b01982222c18e261
parent97d3b2676fc6bc4865eb825037f4492f0fb804eb
ocfs2: use the bitmap API to simplify code

Use bitmap_zero() instead of hand-writing it.  It is less verbose.

While at it, add an explicit #include <linux/bitmap.h>.

Link: https://lkml.kernel.org/r/86d2a027c319db12055c98f00c65f7d01e703722.1658436259.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/heartbeat.c