Commit c7e9dd4d authored by Tejun Heo's avatar Tejun Heo Committed by Linus Torvalds

[PATCH] vm: remove redundant assignment from __pagevec_release_nonlru()

This patch removes redundant assignment from __pagevec_release_nonlru().
pages_to_free.cold is set to pvec->cold by pagevec_init() call right above
the assignment.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 39e88ca2
...@@ -270,7 +270,6 @@ void __pagevec_release_nonlru(struct pagevec *pvec) ...@@ -270,7 +270,6 @@ void __pagevec_release_nonlru(struct pagevec *pvec)
struct pagevec pages_to_free; struct pagevec pages_to_free;
pagevec_init(&pages_to_free, pvec->cold); pagevec_init(&pages_to_free, pvec->cold);
pages_to_free.cold = pvec->cold;
for (i = 0; i < pagevec_count(pvec); i++) { for (i = 0; i < pagevec_count(pvec); i++) {
struct page *page = pvec->pages[i]; struct page *page = pvec->pages[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment