Why do we set _PAGE_DIRTY for page tables?

From: H. Peter Anvin
Date: Tue Apr 22 2014 - 19:35:58 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/