[lkml]   [2018]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH v1 1/2] mm: clarify semantics of reserved pages
The reserved bit once was used to hinder pages from getting swapped. While
this still works, the semantics are a little bit stronger nowadays: The
page should never be touched by anybody in the system except by the owner.
The original comment already gave a hint about that.

So especially, these pages should also not be dumped by dumping tools.
Let's make that more clear by updating the comment.

This will be useful especially in the future in virtual environments where
pages marked with the reserved bit might no longer be accessible.

Cc: Andrew Morton <>
Cc: Michal Hocko <>
Cc: Vlastimil Babka <>
Cc: "Kirill A. Shutemov" <>
Cc: Matthew Wilcox <>
Cc: Greg Kroah-Hartman <>
Cc: David Hildenbrand <>
Cc: Huang Ying <>
Cc: Pavel Tatashin <>
Cc: Miles Chen <>
Cc: Dave Young <>
Cc: Baoquan He <>
Cc: "Marc-André Lureau" <>
Cc: Petr Tesarik <>
Signed-off-by: David Hildenbrand <>
include/linux/page-flags.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 901943e4754b..ba81e11a868c 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -17,8 +17,8 @@
* Various page->flags bits:
- * PG_reserved is set for special pages, which can never be swapped out. Some
- * of them might not even exist...
+ * PG_reserved is set for special pages, which should never be touched (read/
+ * write) by anybody except their owner. Some of them might not even exist.
* The PG_private bitflag is set on pagecache pages if they contain filesystem
* specific data (which is normally at page->private). It can be used by
 \ /
  Last update: 2018-07-20 14:56    [W:0.160 / U:51.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site