diff for duplicates of <4C4796CE.6080306@gmail.com> diff --git a/a/1.txt b/N1/1.txt index 1bc382f..468c1b8 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -20,21 +20,23 @@ index ec88ff3..603170e 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); -+ if (nr_to_scan = 0) ++ if (nr_to_scan == 0) goto out; - } + + spin_lock(&mb_cache_spinlock); 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 +222,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 bff3b22..6126a0f 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,6 @@ - "ref\04C425273.5000702@gmail.com\0" "From\0Wang Sheng-Hui <crosslonelyover@gmail.com>\0" - "Subject\0re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan\0" - "Date\0Thu, 22 Jul 2010 00:54:38 +0000\0" + "Subject\0re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0" + "Date\0Thu, 22 Jul 2010 08:54:38 +0800\0" "To\0Eric Sandeen <sandeen@redhat.com>" agruen@suse.de hch@infradead.org @@ -33,21 +32,23 @@ " \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" "+\tspin_lock(&mb_cache_spinlock);\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 +222,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" @@ -66,4 +67,4 @@ "-- \n" 1.6.3.3 -ece42e28601c736ffed40ba04838ebe4366e4f7d8fecc9f25b4ab480addb689d +8dc48f2b9681e3670b37b777b099121498b454effe03f1ef4ee4012f2e9da8f4
diff --git a/a/1.txt b/N2/1.txt index 1bc382f..468c1b8 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -20,21 +20,23 @@ index ec88ff3..603170e 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); -+ if (nr_to_scan = 0) ++ if (nr_to_scan == 0) goto out; - } + + spin_lock(&mb_cache_spinlock); 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 +222,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/N2/content_digest index bff3b22..0426e53 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\0re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan\0" - "Date\0Thu, 22 Jul 2010 00:54:38 +0000\0" + "Subject\0re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0" + "Date\0Thu, 22 Jul 2010 08:54:38 +0800\0" "To\0Eric Sandeen <sandeen@redhat.com>" agruen@suse.de hch@infradead.org linux-ext4 <linux-ext4@vger.kernel.org> linux-kernel@vger.kernel.org linux-fsdevel@vger.kernel.org - " linux-mm@kv\0" + linux-mm@kvack.org + " kernel-janitors <kernel-janitors@vger.kernel.org>\0" "\00:1\0" "b\0" "Sorry, missed that. Regerated and passed checkpatch.pl check. \n" @@ -33,21 +33,23 @@ " \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" "+\tspin_lock(&mb_cache_spinlock);\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 +222,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" @@ -66,4 +68,4 @@ "-- \n" 1.6.3.3 -ece42e28601c736ffed40ba04838ebe4366e4f7d8fecc9f25b4ab480addb689d +5f8c49e0691c86d7600a523316653dafda1dcf1e74454a82b57bc17473510363
diff --git a/a/1.txt b/N3/1.txt index 1bc382f..762f0f4 100644 --- a/a/1.txt +++ b/N3/1.txt @@ -20,21 +20,23 @@ index ec88ff3..603170e 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); -+ if (nr_to_scan = 0) ++ if (nr_to_scan == 0) goto out; - } + + spin_lock(&mb_cache_spinlock); 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 +222,14 @@ mb_cache_shrink_fn(int nr_to_scan, gfp_t gfp_mask) e_lru_list), gfp_mask); } @@ -52,3 +54,9 @@ index ec88ff3..603170e 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 bff3b22..4a80067 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\0re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan\0" - "Date\0Thu, 22 Jul 2010 00:54:38 +0000\0" + "Subject\0re: [PATCH] fix return value for mb_cache_shrink_fn when nr_to_scan > 0\0" + "Date\0Thu, 22 Jul 2010 08:54:38 +0800\0" "To\0Eric Sandeen <sandeen@redhat.com>" agruen@suse.de hch@infradead.org linux-ext4 <linux-ext4@vger.kernel.org> linux-kernel@vger.kernel.org linux-fsdevel@vger.kernel.org - " linux-mm@kv\0" + linux-mm@kvack.org + " kernel-janitors <kernel-janitors@vger.kernel.org>\0" "\00:1\0" "b\0" "Sorry, missed that. Regerated and passed checkpatch.pl check. \n" @@ -33,21 +33,23 @@ " \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" "+\tspin_lock(&mb_cache_spinlock);\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 +222,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" @@ -64,6 +66,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>" -ece42e28601c736ffed40ba04838ebe4366e4f7d8fecc9f25b4ab480addb689d +43d72956fd9ececacfdb628378361da960e5bb68e53aa7bab7ef8186f3018df1
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.