All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree
@ 2013-06-19  6:55 ` Chen Gang
  0 siblings, 0 replies; 18+ messages in thread
From: Chen Gang @ 2013-06-19  6:55 UTC (permalink / raw)
  To: Mel Gorman, hannes, riel, mhocko; +Cc: Andrew Morton, linux-mm, linux-kernel


'lru' may be used without initialized, so need regressing part of the
related patch.

The related patch:
  "3abf380 mm: remove lru parameter from __lru_cache_add and lru_cache_add_lru"


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 mm/vmscan.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/vmscan.c b/mm/vmscan.c
index fe73724..e92b1858 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -595,6 +595,7 @@ redo:
 		 * unevictable page on [in]active list.
 		 * We know how to handle that.
 		 */
+		lru = !!TestClearPageActive(page) + page_lru_base_type(page);
 		lru_cache_add(page);
 	} else {
 		/*
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-07-09  2:17 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-19  6:55 [PATCH] mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree Chen Gang
2013-06-19  6:55 ` Chen Gang
2013-06-19  7:10 ` Andrew Morton
2013-06-19  7:10   ` Andrew Morton
2013-06-19  7:19   ` Chen Gang
2013-06-19  7:19     ` Chen Gang
2013-07-05  4:06     ` Chen Gang
2013-07-05  4:06       ` Chen Gang
2013-07-08  6:43       ` Chen Gang
2013-07-08  6:43         ` Chen Gang
2013-07-09  2:16         ` Chen Gang
2013-07-09  2:16           ` Chen Gang
2013-06-19  8:53 ` Mel Gorman
2013-06-19  8:53   ` Mel Gorman
2013-06-19  9:56   ` Chen Gang
2013-06-19  9:56     ` Chen Gang
2013-06-19 10:25     ` [PATCH v2] " Chen Gang
2013-06-19 10:25       ` Chen Gang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.