[Devel,rh7,v2,03/10] tcache: Cleanup unused expression from tcache_lru_isolate()

Submitted by Kirill Tkhai on Aug. 16, 2017, 11:52 a.m.

Details

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

Commit Message

Kirill Tkhai Aug. 16, 2017, 11:52 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);