All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20120911094823.GA29568@localhost>

diff --git a/a/1.txt b/N1/1.txt
index a2a7af2..1af3701 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -101,7 +101,7 @@ Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
 +	while (idp->id_free_cnt < MAX_IDR_FREE) {
  		struct idr_layer *new;
  		new = kmem_cache_zalloc(idr_layer_cache, gfp_mask);
- 		if (new = NULL)
+ 		if (new == NULL)
 @@ -179,7 +179,7 @@ static int sub_alloc(struct idr *idp, in
  			sh = IDR_BITS*l;
  			id = ((id >> sh) ^ n ^ m) << sh;
@@ -109,7 +109,7 @@ Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
 -		if ((id >= MAX_ID_BIT) || (id < 0))
 +		if ((id >= MAX_IDR_BIT) || (id < 0))
  			return IDR_NOMORE_SPACE;
- 		if (l = 0)
+ 		if (l == 0)
  			break;
 @@ -402,7 +402,7 @@ void idr_remove(struct idr *idp, int id)
  	struct idr_layer *to_free;
@@ -119,7 +119,7 @@ Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
 +	id &= MAX_IDR_MASK;
  
  	sub_remove(idp, (idp->layers - 1) * IDR_BITS, id);
- 	if (idp->top && idp->top->count = 1 && (idp->layers > 1) &&
+ 	if (idp->top && idp->top->count == 1 && (idp->layers > 1) &&
 @@ -420,7 +420,7 @@ void idr_remove(struct idr *idp, int id)
  		to_free->bitmap = to_free->count = 0;
  		free_layer(to_free);
@@ -165,3 +165,9 @@ Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
  		return -ENOSPC;
  
  	__set_bit(t, bitmap->bitmap);
+
+--
+To unsubscribe, send a message with 'unsubscribe linux-mm' in
+the body to majordomo@kvack.org.  For more info on Linux MM,
+see: http://www.linux-mm.org/ .
+Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
diff --git a/a/content_digest b/N1/content_digest
index 5405628..d3477a7 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -2,7 +2,7 @@
  "ref\0504E1182.7080300@bfs.de\0"
  "From\0Fengguang Wu <fengguang.wu@intel.com>\0"
  "Subject\0Re: [PATCH] idr: Rename MAX_LEVEL to MAX_ID_LEVEL\0"
- "Date\0Tue, 11 Sep 2012 09:48:23 +0000\0"
+ "Date\0Tue, 11 Sep 2012 17:48:23 +0800\0"
  "To\0walter harms <wharms@bfs.de>\0"
  "Cc\0Andrew Morton <akpm@linux-foundation.org>"
   Glauber Costa <glommer@parallels.com>
@@ -113,7 +113,7 @@
  "+\twhile (idp->id_free_cnt < MAX_IDR_FREE) {\n"
  " \t\tstruct idr_layer *new;\n"
  " \t\tnew = kmem_cache_zalloc(idr_layer_cache, gfp_mask);\n"
- " \t\tif (new = NULL)\n"
+ " \t\tif (new == NULL)\n"
  "@@ -179,7 +179,7 @@ static int sub_alloc(struct idr *idp, in\n"
  " \t\t\tsh = IDR_BITS*l;\n"
  " \t\t\tid = ((id >> sh) ^ n ^ m) << sh;\n"
@@ -121,7 +121,7 @@
  "-\t\tif ((id >= MAX_ID_BIT) || (id < 0))\n"
  "+\t\tif ((id >= MAX_IDR_BIT) || (id < 0))\n"
  " \t\t\treturn IDR_NOMORE_SPACE;\n"
- " \t\tif (l = 0)\n"
+ " \t\tif (l == 0)\n"
  " \t\t\tbreak;\n"
  "@@ -402,7 +402,7 @@ void idr_remove(struct idr *idp, int id)\n"
  " \tstruct idr_layer *to_free;\n"
@@ -131,7 +131,7 @@
  "+\tid &= MAX_IDR_MASK;\n"
  " \n"
  " \tsub_remove(idp, (idp->layers - 1) * IDR_BITS, id);\n"
- " \tif (idp->top && idp->top->count = 1 && (idp->layers > 1) &&\n"
+ " \tif (idp->top && idp->top->count == 1 && (idp->layers > 1) &&\n"
  "@@ -420,7 +420,7 @@ void idr_remove(struct idr *idp, int id)\n"
  " \t\tto_free->bitmap = to_free->count = 0;\n"
  " \t\tfree_layer(to_free);\n"
@@ -176,6 +176,12 @@
  "+\tif (id >= MAX_IDR_BIT)\n"
  " \t\treturn -ENOSPC;\n"
  " \n"
- " \t__set_bit(t, bitmap->bitmap);"
+ " \t__set_bit(t, bitmap->bitmap);\n"
+ "\n"
+ "--\n"
+ "To unsubscribe, send a message with 'unsubscribe linux-mm' in\n"
+ "the body to majordomo@kvack.org.  For more info on Linux MM,\n"
+ "see: http://www.linux-mm.org/ .\n"
+ "Don't email: <a href=mailto:\"dont@kvack.org\"> email@kvack.org </a>"
 
-e0e7d2241021261313a4817caec203523048104bdf6de2fbd2ba10c4e2030672
+467ecf8f3adfff57456403d86c25499108b44cc95aea3671eaca7b0a28821344

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.