* [PATCH linux-2.6] vm: remove redundant assignment from __pagevec_release_nonlru()
@ 2005-10-04 9:36 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2005-10-04 9:36 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
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@gmail.com>
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];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-10-04 9:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-04 9:36 [PATCH linux-2.6] vm: remove redundant assignment from __pagevec_release_nonlru() Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®