All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] mm-add-page_check_address_transhuge-helper-fix-fix.patch removed from -mm tree
@ 2016-01-14 22:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-01-14 22:44 UTC (permalink / raw)
  To: kirill, sergey.senozhatsky.work, vdavydov, mm-commits


The patch titled
     Subject: mm-add-page_check_address_transhuge-helper-fix-fix
has been removed from the -mm tree.  Its filename was
     mm-add-page_check_address_transhuge-helper-fix-fix.patch

This patch was dropped because it was folded into mm-add-page_check_address_transhuge-helper.patch

------------------------------------------------------
From: "Kirill A. Shutemov" <kirill@shutemov.name>
Subject: mm-add-page_check_address_transhuge-helper-fix-fix

mm/built-in.o: In function `page_referenced_one':
rmap.c:(.text+0x32070): undefined reference to `pmdp_clear_flush_young'

Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_idle.c |    6 +++++-
 mm/rmap.c      |    5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff -puN mm/page_idle.c~mm-add-page_check_address_transhuge-helper-fix-fix mm/page_idle.c
--- a/mm/page_idle.c~mm-add-page_check_address_transhuge-helper-fix-fix
+++ a/mm/page_idle.c
@@ -66,8 +66,12 @@ static int page_idle_clear_pte_refs_one(
 	if (pte) {
 		referenced = ptep_clear_young_notify(vma, addr, pte);
 		pte_unmap(pte);
-	} else
+	} else if (IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE)) {
 		referenced = pmdp_clear_young_notify(vma, addr, pmd);
+	} else {
+		/* unexpected pmd-mapped page? */
+		WARN_ON_ONCE(1);
+	}
 
 	spin_unlock(ptl);
 
diff -puN mm/rmap.c~mm-add-page_check_address_transhuge-helper-fix-fix mm/rmap.c
--- a/mm/rmap.c~mm-add-page_check_address_transhuge-helper-fix-fix
+++ a/mm/rmap.c
@@ -931,9 +931,12 @@ static int page_referenced_one(struct pa
 				referenced++;
 		}
 		pte_unmap(pte);
-	} else {
+	} else if (IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE)) {
 		if (pmdp_clear_flush_young_notify(vma, address, pmd))
 			referenced++;
+	} else {
+		/* unexpected pmd-mapped page? */
+		WARN_ON_ONCE(1);
 	}
 	spin_unlock(ptl);
 
_

Patches currently in -mm which might be from kirill@shutemov.name are

mm-add-page_check_address_transhuge-helper.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-14 22:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14 22:44 [folded-merged] mm-add-page_check_address_transhuge-helper-fix-fix.patch removed from -mm tree akpm

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.