[Devel,RHEL7,COMMIT] tcache: Cleanup unused expression from tcache_lru_isolate()

Submitted by Konstantin Khorenko on Aug. 31, 2017, 3:18 p.m.

Details

Message ID 201708311518.v7VFIJWA017311@finist_ce7.work
State New
Series "tcache: Manage LRU lists under per-filesystem lock"
Headers show

Commit Message

Konstantin Khorenko Aug. 31, 2017, 3:18 p.m.
The commit is pushed to "branch-rh7-3.10.0-514.26.1.vz7.35.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-514.26.1.vz7.35.5
------>
commit 389f1b056f987726601af0399791b18f107436c5
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Thu Aug 31 18:18:18 2017 +0300

    tcache: Cleanup unused expression from tcache_lru_isolate()
    
    Nobody use nr_to_isolate in further. It seems, it's historical leftover.
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
    Acked-by: Andrey Ryabinin <aryabinin@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 ab70af2..0e57ae6 100644
--- a/mm/tcache.c
+++ b/mm/tcache.c
@@ -1049,7 +1049,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);