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

From: Tejun Heo
Date: Tue Oct 04 2005 - 04:37:30 EST


Hello, Andrew.

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.

Thanks.

Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>

diff --git a/mm/swap.c b/mm/swap.c
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -270,7 +270,6 @@ void __pagevec_release_nonlru(struct pag
struct pagevec pages_to_free;

pagevec_init(&pages_to_free, pvec->cold);
- pages_to_free.cold = pvec->cold;
for (i = 0; i < pagevec_count(pvec); i++) {
struct page *page = pvec->pages[i];

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/