public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Why do we set _PAGE_DIRTY for page tables?
@ 2014-04-22 23:35 H. Peter Anvin
  2014-04-23  2:48 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: H. Peter Anvin @ 2014-04-22 23:35 UTC (permalink / raw)
  To: Ingo Molnar, Thomas Gleixner, Linux Kernel Mailing List,
	Linus Torvalds, linux-mm@kvack.org

I just noticed this:

#define _PAGE_TABLE     (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER |       \
                         _PAGE_ACCESSED | _PAGE_DIRTY)
#define _KERNPG_TABLE   (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED |   \
                         _PAGE_DIRTY)

Is there a reason we set _PAGE_DIRTY for page tables?  It has no
function, but doesn't do any harm either (the dirty bit is ignored for
page tables)... it just looks funny to me.

	-hpa

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-23  2:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22 23:35 Why do we set _PAGE_DIRTY for page tables? H. Peter Anvin
2014-04-23  2:48 ` Linus Torvalds
2014-04-23  2:51   ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox