All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] idr-reduce-the-unneeded-check-in-free_layer.patch removed from -mm tree
@ 2014-06-09 19:35 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2014-06-09 19:35 UTC (permalink / raw)
  To: mm-commits, tj, laijs

Subject: [merged] idr-reduce-the-unneeded-check-in-free_layer.patch removed from -mm tree
To: laijs@cn.fujitsu.com,tj@kernel.org,mm-commits@vger.kernel.org
From: akpm@linux-foundation.org
Date: Mon, 09 Jun 2014 12:35:22 -0700


The patch titled
     Subject: idr: reduce the unneeded check in free_layer()
has been removed from the -mm tree.  Its filename was
     idr-reduce-the-unneeded-check-in-free_layer.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Lai Jiangshan <laijs@cn.fujitsu.com>
Subject: idr: reduce the unneeded check in free_layer()

If "idr->hint == p" is true, it also implies "idr->hint" is true(not NULL).

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 lib/idr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN lib/idr.c~idr-reduce-the-unneeded-check-in-free_layer lib/idr.c
--- a/lib/idr.c~idr-reduce-the-unneeded-check-in-free_layer
+++ a/lib/idr.c
@@ -145,7 +145,7 @@ static void idr_layer_rcu_free(struct rc
 
 static inline void free_layer(struct idr *idr, struct idr_layer *p)
 {
-	if (idr->hint && idr->hint == p)
+	if (idr->hint == p)
 		RCU_INIT_POINTER(idr->hint, NULL);
 	call_rcu(&p->rcu_head, idr_layer_rcu_free);
 }
_

Patches currently in -mm which might be from laijs@cn.fujitsu.com are

origin.patch
linux-next.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-09 19:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-09 19:35 [merged] idr-reduce-the-unneeded-check-in-free_layer.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.