mm: don't rely on flags coincidence
authorHugh Dickins <hugh.dickins@tiscali.co.uk>
Tue, 23 Jun 2009 12:52:49 +0000 (13:52 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 23 Jun 2009 18:23:33 +0000 (11:23 -0700)
commitd26ed650d9947a786bbda8de9cd914dbeebc1a68
tree4d3b9577187b2adca6c48861266842dd4f9e7290
parent788c7df451467df71638dd79a2d63d78c6e13b9c
mm: don't rely on flags coincidence

Indeed FOLL_WRITE matches FAULT_FLAG_WRITE, matches GUP_FLAGS_WRITE,
and it's tempting to devise a set of Grand Unified Paging flags;
but not today.  So until then, let's rely upon the compiler to spot
the coincidence, "rather than have that subtle dependency and a
comment for it" - as you remarked in another context yesterday.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c