Skip to contentSkip to conversation

+ mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jun 19, 2013

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 19 Jun 2013 10:16:59 -0700

The patch titled
Subject: mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree
has been added to the -mm tree. Its filename is
mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Chen Gang <[email protected]>
Subject: mm/vmscan.c: 'lru' may be used without initialized after the patch "3abf380..." in next-20130607 tree

'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"

Cc Mel Gorman <[email protected]>
Cc Rik van Riel <[email protected]>
Cc Johannes Weiner <[email protected]>

---

 mm/vmscan.c |    1 +
 1 file changed, 1 insertion(+)
mm/vmscan.c renamed from mm/vmscan.c~mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2 +1 -0
diff -puN mm/vmscan.c~mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2 mm/vmscan.c
@@ -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 {
 		/*

_

Patches currently in -mm which might be from [email protected] are

linux-next.patch kernel-auditfilterc-fix-leak-in-audit_add_rule-error-path.patch posix-timers-correctly-get-dying-task-time-sample-in-posix_cpu_timer_schedule.patch mm-remove-lru-parameter-from-__lru_cache_add-and-lru_cache_add_lru-fix-2.patch mm-page_allocc-add-additional-checking-and-return-value-for-the-table-data.patch mm-nommuc-add-additional-check-for-vread-just-like-vwrite-has-done.patch arch-frv-kernel-trapsc-using-vsnprintf-instead-of-vsprintf.patch arch-frv-kernel-setupc-use-strncmp-instead-of-memcmp.patch