* + ocfs2-remove-unnecessary-init_list_head.patch added to -mm tree
@ 2021-05-11 22:32 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-05-11 22:32 UTC (permalink / raw)
To: gechangwei, ghe, hulkci, jiangqi903, jlbec, junxiao.bi, mark,
mm-commits, piaojun, yangyingliang
The patch titled
Subject: ocfs2: remove unnecessary INIT_LIST_HEAD()
has been added to the -mm tree. Its filename is
ocfs2-remove-unnecessary-init_list_head.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/ocfs2-remove-unnecessary-init_list_head.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-remove-unnecessary-init_list_head.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Yang Yingliang <yangyingliang@huawei.com>
Subject: ocfs2: remove unnecessary INIT_LIST_HEAD()
The list_head o2hb_node_events is initialized statically. It is
unnecessary to initialize by INIT_LIST_HEAD().
Link: https://lkml.kernel.org/r/20210511115847.3817395-1-yangyingliang@huawei.com
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reported-by: Hulk Robot <hulkci@huawei.com>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.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>
---
fs/ocfs2/cluster/heartbeat.c | 2 --
1 file changed, 2 deletions(-)
--- a/fs/ocfs2/cluster/heartbeat.c~ocfs2-remove-unnecessary-init_list_head
+++ a/fs/ocfs2/cluster/heartbeat.c
@@ -1442,8 +1442,6 @@ void o2hb_init(void)
for (i = 0; i < ARRAY_SIZE(o2hb_live_slots); i++)
INIT_LIST_HEAD(&o2hb_live_slots[i]);
- INIT_LIST_HEAD(&o2hb_node_events);
-
memset(o2hb_live_node_bitmap, 0, sizeof(o2hb_live_node_bitmap));
memset(o2hb_region_bitmap, 0, sizeof(o2hb_region_bitmap));
memset(o2hb_live_region_bitmap, 0, sizeof(o2hb_live_region_bitmap));
_
Patches currently in -mm which might be from yangyingliang@huawei.com are
ocfs2-remove-unnecessary-init_list_head.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-11 22:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-11 22:32 + ocfs2-remove-unnecessary-init_list_head.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).