]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
alpha: unobfuscate _PAGE_P() definition
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Feb 2023 04:24:35 +0000 (23:24 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Sep 2025 01:12:05 +0000 (21:12 -0400)
commitf037fd7fbca4d111955b5889417ddf6fb24498e5
treec8b1eda5db0cdf384f564c45b13d92fffb21102e
parent50247b66428e8aae306b754fb958d4f38a2b102d
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>
arch/alpha/include/asm/pgtable.h