Skip to content

Commit f037fd7

Browse files
author
Al Viro
committed
alpha: unobfuscate _PAGE_P() definition
Way, way back it used to be _PAGE_NORMAL((x) | ((x & _PAGE_FOW) ? 0 : _PAGE_FOW | _PAGE_COW)) Then (in 1.3.54) _PAGE_COW had died. Result: _PAGE_NORMAL((x) | ((x & _PAGE_FOW) ? 0 : _PAGE_FOW)) which is somewhat... obscure. What it does is simply _PAGE_NORMAL((x) | _PAGE_FOW) and IMO that's easier to follow. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 50247b6 commit f037fd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/alpha/include/asm/pgtable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ struct vm_area_struct;
107107

108108
#define _PAGE_NORMAL(x) __pgprot(_PAGE_VALID | __ACCESS_BITS | (x))
109109

110-
#define _PAGE_P(x) _PAGE_NORMAL((x) | (((x) & _PAGE_FOW)?0:_PAGE_FOW))
110+
#define _PAGE_P(x) _PAGE_NORMAL((x) | _PAGE_FOW)
111111
#define _PAGE_S(x) _PAGE_NORMAL(x)
112112

113113
/*

0 commit comments

Comments
 (0)