Skip to content

Commit

Permalink
[PATCH] vm: remove redundant assignment from __pagevec_release_nonlru()
Browse files Browse the repository at this point in the history
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: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Oct 31, 2005
1 parent 39e88ca commit c7e9dd4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mm/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ void __pagevec_release_nonlru(struct pagevec *pvec)
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];

Expand Down

0 comments on commit c7e9dd4

Please sign in to comment.