diff for duplicates of <4C46D1C5.90200@gmail.com> diff --git a/a/1.txt b/N1/1.txt index 4810902..7767883 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -25,22 +25,24 @@ index ec88ff3..ee57aa3 100644 - 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); + + spin_lock(&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, @@ -223,12 +217,18 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask) list_move_tail(&ce->e_lru_list, &free_list); __mb_cache_entry_unhash(ce); diff --git a/a/content_digest b/N1/content_digest index 00aa0ae..40e4b8d 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,14 +1,14 @@ - "ref\04C425273.5000702@gmail.com\0" "From\0Wang Sheng-Hui <crosslonelyover@gmail.com>\0" - "Subject\0[PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan >\0" - "Date\0Wed, 21 Jul 2010 10:53:57 +0000\0" + "Subject\0[PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0" + "Date\0Wed, 21 Jul 2010 18:53:57 +0800\0" "To\0sandeen@redhat.com" agruen@suse.de hch@infradead.org linux-ext4 <linux-ext4@vger.kernel.org> linux-fsdevel@vger.kernel.org linux-kernel@vger.kernel.org - " linux-mm@kvack.orgkerne\0" + linux-mm@kvack.org + " kerne\0" "\00:1\0" "b\0" "Sorry. regerated the patch, please check it.\n" @@ -38,22 +38,24 @@ " \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" "+\n" "+\tspin_lock(&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" "@@ -223,12 +217,18 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)\n" " \t\tlist_move_tail(&ce->e_lru_list, &free_list);\n" " \t\t__mb_cache_entry_unhash(ce);\n" @@ -77,4 +79,4 @@ "-- \n" 1.6.3.3 -c8af23f3dc9837f4e9b6dfe58dbc9a2035fe920dd2684efc6ce5e696d229c3c3 +d5ed7e728ba8c358ec9f430064f97479274e7b0181acccce8d3bba9a7ca9d515
diff --git a/a/1.txt b/N2/1.txt index 4810902..7767883 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -25,22 +25,24 @@ index ec88ff3..ee57aa3 100644 - 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); + + spin_lock(&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, @@ -223,12 +217,18 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask) list_move_tail(&ce->e_lru_list, &free_list); __mb_cache_entry_unhash(ce); diff --git a/a/content_digest b/N2/content_digest index 00aa0ae..83ee167 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -1,14 +1,14 @@ - "ref\04C425273.5000702@gmail.com\0" "From\0Wang Sheng-Hui <crosslonelyover@gmail.com>\0" - "Subject\0[PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan >\0" - "Date\0Wed, 21 Jul 2010 10:53:57 +0000\0" + "Subject\0[PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0" + "Date\0Wed, 21 Jul 2010 18:53:57 +0800\0" "To\0sandeen@redhat.com" agruen@suse.de hch@infradead.org linux-ext4 <linux-ext4@vger.kernel.org> linux-fsdevel@vger.kernel.org linux-kernel@vger.kernel.org - " linux-mm@kvack.orgkerne\0" + linux-mm@kvack.org + " kernel-janitors <kernel-janitors@vger.kernel.org>\0" "\00:1\0" "b\0" "Sorry. regerated the patch, please check it.\n" @@ -38,22 +38,24 @@ " \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" "+\n" "+\tspin_lock(&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" "@@ -223,12 +217,18 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)\n" " \t\tlist_move_tail(&ce->e_lru_list, &free_list);\n" " \t\t__mb_cache_entry_unhash(ce);\n" @@ -77,4 +79,4 @@ "-- \n" 1.6.3.3 -c8af23f3dc9837f4e9b6dfe58dbc9a2035fe920dd2684efc6ce5e696d229c3c3 +1581ec63f4d25a558f28c617c729219e27113a19997251bc8a4d9faed2f80013
diff --git a/a/1.txt b/N3/1.txt index 4810902..2a42e6b 100644 --- a/a/1.txt +++ b/N3/1.txt @@ -25,22 +25,24 @@ index ec88ff3..ee57aa3 100644 - 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); + + spin_lock(&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, @@ -223,12 +217,18 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask) list_move_tail(&ce->e_lru_list, &free_list); __mb_cache_entry_unhash(ce); @@ -63,3 +65,9 @@ index ec88ff3..ee57aa3 100644 -- 1.6.3.3 + +-- +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/N3/content_digest index 00aa0ae..0d074a7 100644 --- a/a/content_digest +++ b/N3/content_digest @@ -1,14 +1,14 @@ - "ref\04C425273.5000702@gmail.com\0" "From\0Wang Sheng-Hui <crosslonelyover@gmail.com>\0" - "Subject\0[PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan >\0" - "Date\0Wed, 21 Jul 2010 10:53:57 +0000\0" + "Subject\0[PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0" + "Date\0Wed, 21 Jul 2010 18:53:57 +0800\0" "To\0sandeen@redhat.com" agruen@suse.de hch@infradead.org linux-ext4 <linux-ext4@vger.kernel.org> linux-fsdevel@vger.kernel.org linux-kernel@vger.kernel.org - " linux-mm@kvack.orgkerne\0" + linux-mm@kvack.org + " kernel-janitors <kernel-janitors@vger.kernel.org>\0" "\00:1\0" "b\0" "Sorry. regerated the patch, please check it.\n" @@ -38,22 +38,24 @@ " \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" "+\n" "+\tspin_lock(&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" "@@ -223,12 +217,18 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask)\n" " \t\tlist_move_tail(&ce->e_lru_list, &free_list);\n" " \t\t__mb_cache_entry_unhash(ce);\n" @@ -75,6 +77,12 @@ " }\n" " \n" "-- \n" - 1.6.3.3 + "1.6.3.3\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>" -c8af23f3dc9837f4e9b6dfe58dbc9a2035fe920dd2684efc6ce5e696d229c3c3 +c98e92f8b88e03ca501ce5c9d42c4878e3a8238eab80a46ef21131634f324196
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.