All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4C447CE9.20904@redhat.com>

diff --git a/a/1.txt b/N1/1.txt
index b8d9f93..f2618af 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -48,20 +48,22 @@ Thanks,
 > 
 > -	spin_lock(&mb_cache_spinlock);
 > -	list_for_each(l, &mb_cache_list) {
-> -		struct mb_cache *cache > -			list_entry(l, struct mb_cache, c_cache_list);
+> -		struct mb_cache *cache =
+> -			list_entry(l, struct mb_cache, c_cache_list);
 > -		mb_debug("cache %s (%d)", cache->c_name,
 > -			  atomic_read(&cache->c_entry_count));
 > -		count += atomic_read(&cache->c_entry_count);
 > -	}
 >  	mb_debug("trying to free %d entries", nr_to_scan);
-> -	if (nr_to_scan = 0) {
+> -	if (nr_to_scan == 0) {
 > -		spin_unlock(&mb_cache_spinlock);
-> +	if (nr_to_scan = 0)
+> +	if (nr_to_scan == 0)
 >  		goto out;
 > -	}
 > +
 >  	while (nr_to_scan-- && !list_empty(&mb_cache_lru_list)) {
->  		struct mb_cache_entry *ce >  			list_entry(mb_cache_lru_list.next,
+>  		struct mb_cache_entry *ce =
+>  			list_entry(mb_cache_lru_list.next,
 > @@ -229,6 +221,14 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)
 >  						   e_lru_list), gfp_mask);
 >  	}
diff --git a/a/content_digest b/N1/content_digest
index 11e9897..4671f92 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -1,7 +1,7 @@
  "ref\04C430830.9020903@gmail.com\0"
  "From\0Eric Sandeen <sandeen@redhat.com>\0"
- "Subject\0Re: [PATCH 1/2 RESEND] fix return value for mb_cache_shrink_fn when\0"
- "Date\0Mon, 19 Jul 2010 16:27:21 +0000\0"
+ "Subject\0Re: [PATCH 1/2 RESEND] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0"
+ "Date\0Mon, 19 Jul 2010 11:27:21 -0500\0"
  "To\0Wang Sheng-Hui <crosslonelyover@gmail.com>\0"
  "Cc\0linux-fsdevel@vger.kernel.org"
   viro@zeniv.linux.org.uk
@@ -61,20 +61,22 @@
  "> \n"
  "> -\tspin_lock(&mb_cache_spinlock);\n"
  "> -\tlist_for_each(l, &mb_cache_list) {\n"
- "> -\t\tstruct mb_cache *cache > -\t\t\tlist_entry(l, struct mb_cache, c_cache_list);\n"
+ "> -\t\tstruct mb_cache *cache =\n"
+ "> -\t\t\tlist_entry(l, struct mb_cache, c_cache_list);\n"
  "> -\t\tmb_debug(\"cache %s (%d)\", cache->c_name,\n"
  "> -\t\t\t  atomic_read(&cache->c_entry_count));\n"
  "> -\t\tcount += atomic_read(&cache->c_entry_count);\n"
  "> -\t}\n"
  ">  \tmb_debug(\"trying to free %d entries\", nr_to_scan);\n"
- "> -\tif (nr_to_scan = 0) {\n"
+ "> -\tif (nr_to_scan == 0) {\n"
  "> -\t\tspin_unlock(&mb_cache_spinlock);\n"
- "> +\tif (nr_to_scan = 0)\n"
+ "> +\tif (nr_to_scan == 0)\n"
  ">  \t\tgoto out;\n"
  "> -\t}\n"
  "> +\n"
  ">  \twhile (nr_to_scan-- && !list_empty(&mb_cache_lru_list)) {\n"
- ">  \t\tstruct mb_cache_entry *ce >  \t\t\tlist_entry(mb_cache_lru_list.next,\n"
+ ">  \t\tstruct mb_cache_entry *ce =\n"
+ ">  \t\t\tlist_entry(mb_cache_lru_list.next,\n"
  "> @@ -229,6 +221,14 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)\n"
  ">  \t\t\t\t\t\t   e_lru_list), gfp_mask);\n"
  ">  \t}\n"
@@ -91,4 +93,4 @@
  ">  }\n"
  >
 
-327612720f2cf6a6209d95408d99c1bc680b39777bf8a8253e63262694aaf635
+05ad32074acbf525899d3c0007c078f54ff8eea1c44e774100b47b8cae5b9152

diff --git a/a/1.txt b/N2/1.txt
index b8d9f93..5377315 100644
--- a/a/1.txt
+++ b/N2/1.txt
@@ -48,20 +48,22 @@ Thanks,
 > 
 > -	spin_lock(&mb_cache_spinlock);
 > -	list_for_each(l, &mb_cache_list) {
-> -		struct mb_cache *cache > -			list_entry(l, struct mb_cache, c_cache_list);
+> -		struct mb_cache *cache =
+> -			list_entry(l, struct mb_cache, c_cache_list);
 > -		mb_debug("cache %s (%d)", cache->c_name,
 > -			  atomic_read(&cache->c_entry_count));
 > -		count += atomic_read(&cache->c_entry_count);
 > -	}
 >  	mb_debug("trying to free %d entries", nr_to_scan);
-> -	if (nr_to_scan = 0) {
+> -	if (nr_to_scan == 0) {
 > -		spin_unlock(&mb_cache_spinlock);
-> +	if (nr_to_scan = 0)
+> +	if (nr_to_scan == 0)
 >  		goto out;
 > -	}
 > +
 >  	while (nr_to_scan-- && !list_empty(&mb_cache_lru_list)) {
->  		struct mb_cache_entry *ce >  			list_entry(mb_cache_lru_list.next,
+>  		struct mb_cache_entry *ce =
+>  			list_entry(mb_cache_lru_list.next,
 > @@ -229,6 +221,14 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)
 >  						   e_lru_list), gfp_mask);
 >  	}
@@ -76,4 +78,10 @@ Thanks,
 > +
 >  	return (count / 100) * sysctl_vfs_cache_pressure;
 >  }
->
+> 
+
+--
+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/N2/content_digest
index 11e9897..f44d969 100644
--- a/a/content_digest
+++ b/N2/content_digest
@@ -1,7 +1,7 @@
  "ref\04C430830.9020903@gmail.com\0"
  "From\0Eric Sandeen <sandeen@redhat.com>\0"
- "Subject\0Re: [PATCH 1/2 RESEND] fix return value for mb_cache_shrink_fn when\0"
- "Date\0Mon, 19 Jul 2010 16:27:21 +0000\0"
+ "Subject\0Re: [PATCH 1/2 RESEND] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0"
+ "Date\0Mon, 19 Jul 2010 11:27:21 -0500\0"
  "To\0Wang Sheng-Hui <crosslonelyover@gmail.com>\0"
  "Cc\0linux-fsdevel@vger.kernel.org"
   viro@zeniv.linux.org.uk
@@ -61,20 +61,22 @@
  "> \n"
  "> -\tspin_lock(&mb_cache_spinlock);\n"
  "> -\tlist_for_each(l, &mb_cache_list) {\n"
- "> -\t\tstruct mb_cache *cache > -\t\t\tlist_entry(l, struct mb_cache, c_cache_list);\n"
+ "> -\t\tstruct mb_cache *cache =\n"
+ "> -\t\t\tlist_entry(l, struct mb_cache, c_cache_list);\n"
  "> -\t\tmb_debug(\"cache %s (%d)\", cache->c_name,\n"
  "> -\t\t\t  atomic_read(&cache->c_entry_count));\n"
  "> -\t\tcount += atomic_read(&cache->c_entry_count);\n"
  "> -\t}\n"
  ">  \tmb_debug(\"trying to free %d entries\", nr_to_scan);\n"
- "> -\tif (nr_to_scan = 0) {\n"
+ "> -\tif (nr_to_scan == 0) {\n"
  "> -\t\tspin_unlock(&mb_cache_spinlock);\n"
- "> +\tif (nr_to_scan = 0)\n"
+ "> +\tif (nr_to_scan == 0)\n"
  ">  \t\tgoto out;\n"
  "> -\t}\n"
  "> +\n"
  ">  \twhile (nr_to_scan-- && !list_empty(&mb_cache_lru_list)) {\n"
- ">  \t\tstruct mb_cache_entry *ce >  \t\t\tlist_entry(mb_cache_lru_list.next,\n"
+ ">  \t\tstruct mb_cache_entry *ce =\n"
+ ">  \t\t\tlist_entry(mb_cache_lru_list.next,\n"
  "> @@ -229,6 +221,14 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)\n"
  ">  \t\t\t\t\t\t   e_lru_list), gfp_mask);\n"
  ">  \t}\n"
@@ -89,6 +91,12 @@
  "> +\n"
  ">  \treturn (count / 100) * sysctl_vfs_cache_pressure;\n"
  ">  }\n"
- >
+ "> \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>"
 
-327612720f2cf6a6209d95408d99c1bc680b39777bf8a8253e63262694aaf635
+9b29c700434ce01e5689dc24198d867ee24933936c83c17e18d3abc03503f31c

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.