* [to-be-updated] huge-tmpfs-show-page-team-flag-in-pageflags.patch removed from -mm tree
@ 2016-04-21 20:46 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2016-04-21 20:46 UTC (permalink / raw)
To: andreslc, aarcange, hughd, kirill.shutemov, quning, rientjes,
yang.shi, mm-commits
The patch titled
Subject: huge tmpfs: show page team flag in pageflags
has been removed from the -mm tree. Its filename was
huge-tmpfs-show-page-team-flag-in-pageflags.patch
This patch was dropped because an updated version will be merged
------------------------------------------------------
From: Andres Lagar-Cavilla <andreslc@google.com>
Subject: huge tmpfs: show page team flag in pageflags
For debugging and testing.
Signed-off-by: Andres Lagar-Cavilla <andreslc@google.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Yang Shi <yang.shi@linaro.org>
Cc: Ning Qu <quning@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
Documentation/vm/pagemap.txt | 2 ++
fs/proc/page.c | 6 ++++++
include/uapi/linux/kernel-page-flags.h | 3 ++-
tools/vm/page-types.c | 2 ++
4 files changed, 12 insertions(+), 1 deletion(-)
diff -puN Documentation/vm/pagemap.txt~huge-tmpfs-show-page-team-flag-in-pageflags Documentation/vm/pagemap.txt
--- a/Documentation/vm/pagemap.txt~huge-tmpfs-show-page-team-flag-in-pageflags
+++ a/Documentation/vm/pagemap.txt
@@ -71,6 +71,8 @@ There are four components to pagemap:
23. BALLOON
24. ZERO_PAGE
25. IDLE
+ 26. TEAM
+ 27. TEAM_PMD_MMAP (only if the whole team is mapped as a pmd at least once)
* /proc/kpagecgroup. This file contains a 64-bit inode number of the
memory cgroup each page is charged to, indexed by PFN. Only available when
diff -puN fs/proc/page.c~huge-tmpfs-show-page-team-flag-in-pageflags fs/proc/page.c
--- a/fs/proc/page.c~huge-tmpfs-show-page-team-flag-in-pageflags
+++ a/fs/proc/page.c
@@ -12,6 +12,7 @@
#include <linux/memcontrol.h>
#include <linux/mmu_notifier.h>
#include <linux/page_idle.h>
+#include <linux/pageteam.h>
#include <linux/kernel-page-flags.h>
#include <asm/uaccess.h>
#include "internal.h"
@@ -112,6 +113,11 @@ u64 stable_page_flags(struct page *page)
if (PageKsm(page))
u |= 1 << KPF_KSM;
+ if (PageTeam(page)) {
+ u |= 1 << KPF_TEAM;
+ if (page == team_head(page) && team_pmd_mapped(page))
+ u |= 1 << KPF_TEAM_PMD_MMAP;
+ }
/*
* compound pages: export both head/tail info
* they together define a compound page's start/end pos and order
diff -puN include/uapi/linux/kernel-page-flags.h~huge-tmpfs-show-page-team-flag-in-pageflags include/uapi/linux/kernel-page-flags.h
--- a/include/uapi/linux/kernel-page-flags.h~huge-tmpfs-show-page-team-flag-in-pageflags
+++ a/include/uapi/linux/kernel-page-flags.h
@@ -34,6 +34,7 @@
#define KPF_BALLOON 23
#define KPF_ZERO_PAGE 24
#define KPF_IDLE 25
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-04-21 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-21 20:46 [to-be-updated] huge-tmpfs-show-page-team-flag-in-pageflags.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.