]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in...
authorChen Gang <gang.chen@asianux.com>
Thu, 27 Jun 2013 23:51:39 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:37 +0000 (16:37 +1000)
'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>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index b96faea62a110714ce398400977c52a17c992dc5..99b3ac7771ada907f36e1fbee15bddd524a1db23 100644 (file)
@@ -560,6 +560,7 @@ redo:
                 * unevictable page on [in]active list.
                 * We know how to handle that.
                 */
+               lru = page_lru_base_type(page);
                lru_cache_add(page);
        } else {
                /*