[Devel,rh7,3/9] tcache: Cleanup unused expression from tcache_lru_isolate()

Submitted by Kirill Tkhai on Aug. 15, 2017, 11:23 a.m.

Details

Message ID 150279622079.12806.3268298134770689387.stgit@localhost.localdomain
State New
Series "Manage LRU lists under per-filesystem lock"
Headers show

Commit Message

Kirill Tkhai Aug. 15, 2017, 11:23 a.m.
Nobody use nr_to_isolate in further. It seems, it's historical leftover.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 mm/tcache.c |    1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/mm/tcache.c b/mm/tcache.c
index 441cbd83717..f2a9f439afb 100644
--- a/mm/tcache.c
+++ b/mm/tcache.c
@@ -1048,7 +1048,6 @@  tcache_lru_isolate(int nid, struct page **pages, int nr_to_isolate)
 	nr = __tcache_lru_isolate(pni, pages, nr_to_isolate);
 	ni->nr_pages -= nr;
 	nr_isolated += nr;
-	nr_to_isolate -= nr;
 
 	if (!list_empty(&pni->lru))
 		__tcache_insert_reclaim_node(ni, pni);