]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mm: define a UNIQUE value for AS_UNEVICTABLE flag
authorLee Schermerhorn <Lee.Schermerhorn@hp.com>
Fri, 3 Apr 2009 04:35:10 +0000 (04:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 May 2009 17:56:41 +0000 (10:56 -0700)
commit36cb7b50ee14945f41d0493daa186e2372b9a3e6
tree858614ee822c852d333fe938ca8af4d6a7520522
parente3e11cd276c1b93c1dea3b94e0225c5cff7c94d7
mm: define a UNIQUE value for AS_UNEVICTABLE flag

upstream commit: 9a896c9a48ac6704c0ce8ee081b836644d0afe40

A new "address_space flag"--AS_MM_ALL_LOCKS--was defined to use the next
available AS flag while the Unevictable LRU was under development.  The
Unevictable LRU was using the same flag and "no one" noticed.  Current
mainline, since 2.6.28, has same value for two symbolic flag names.

So, define a unique flag value for AS_UNEVICTABLE--up close to the other
flags, [at the cost of an additional #ifdef] so we'll notice next time.
Note that #ifdef is not actually required, if we don't mind having the
unused flag value defined.

Replace #defines with an enum.

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/pagemap.h