+ ocfs2-use-find_last_bit.patch added to -mm tree
Subject: + ocfs2-use-find_last_bit.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 20 Sep 2013 13:50:16 -0700
The patch titled
Subject: ocfs2: use find_last_bit()
has been added to the -mm tree. Its filename is
ocfs2-use-find_last_bit.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-use-find_last_bit.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-use-find_last_bit.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/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Akinobu Mita <[email protected]>
Subject: ocfs2: use find_last_bit()
We already have find_last_bit(). So just use it as described in the comment.
---
fs/ocfs2/cluster/heartbeat.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-)
fs/ocfs2/cluster/heartbeat.c renamed from fs/ocfs2/cluster/heartbeat.c~ocfs2-use-find_last_bit +1 -14
@@ -946,23 +946,9 @@ out:return changed; } -/* This could be faster if we just implmented a find_last_bit, but I -* don't think the circumstances warrant it. */ -static int o2hb_highest_node (unsigned long *nodes, -int numbits) +static int o2hb_highest_node (unsigned long *nodes,int numbits) { -int highest, node; - - highest = numbits; - node =-1 ; -while ((node =find_next_bit (nodes, numbits, node +1 )) !=-1 ) { -if (node >= numbits) -break ; - - highest = node; - }