projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
337ed7e
)
arch/x86/include/asm/pgtable.h: add pmd_[dirty|mkclean] for THP
author
Minchan Kim
<
[email protected]
>
Sat, 16 Jan 2016 00:55:20 +0000
(16:55 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 16 Jan 2016 01:56:32 +0000
(17:56 -0800)
MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent overwrite
of the contents since MADV_FREE syscall is called for THP page.
This patch adds pmd_dirty and pmd_mkclean for THP page MADV_FREE
support.
Signed-off-by: Minchan Kim <
[email protected]
>
Cc: "James E.J. Bottomley" <
[email protected]
>
Cc: "Kirill A. Shutemov" <
[email protected]
>
Cc: Shaohua Li <
[email protected]
>
Cc: <
[email protected]
>
Cc: Andrea Arcangeli <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: Benjamin Herrenschmidt <
[email protected]
>
Cc: Catalin Marinas <
[email protected]
>
Cc: Chen Gang <
[email protected]
>
Cc: Chris Zankel <
[email protected]
>
Cc: Daniel Micay <
[email protected]
>
Cc: Darrick J. Wong <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Cc: Helge Deller <
[email protected]
>
Cc: Hugh Dickins <
[email protected]
>
Cc: Ivan Kokshaysky <
[email protected]
>
Cc: Jason Evans <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Cc: KOSAKI Motohiro <
[email protected]
>
Cc: Kirill A. Shutemov <
[email protected]
>
Cc: Matt Turner <
[email protected]
>
Cc: Max Filippov <
[email protected]
>
Cc: Mel Gorman <
[email protected]
>
Cc: Michael Kerrisk <
[email protected]
>
Cc: Michal Hocko <
[email protected]
>
Cc: Mika Penttil <
[email protected]
>
Cc: Ralf Baechle <
[email protected]
>
Cc: Richard Henderson <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Roland Dreier <
[email protected]
>
Cc: Russell King <
[email protected]
>
Cc: Shaohua Li <
[email protected]
>
Cc: Will Deacon <
[email protected]
>
Cc: Wu Fengguang <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/x86/include/asm/pgtable.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/pgtable.h
b/arch/x86/include/asm/pgtable.h
index 61e706c9f7100a5e51d5c5ca000657281f138e5a..4973cc9eaccecdd957c38ec7fa138e79435bca5c 100644
(file)
--- a/
arch/x86/include/asm/pgtable.h
+++ b/
arch/x86/include/asm/pgtable.h
@@
-266,6
+266,11
@@
static inline pmd_t pmd_mkold(pmd_t pmd)
return pmd_clear_flags(pmd, _PAGE_ACCESSED);
}
+static inline pmd_t pmd_mkclean(pmd_t pmd)
+{
+ return pmd_clear_flags(pmd, _PAGE_DIRTY);
+}
+
static inline pmd_t pmd_wrprotect(pmd_t pmd)
{
return pmd_clear_flags(pmd, _PAGE_RW);