After "mm: don't use radix tree writeback tags for pages in swap cache",
all the flags are now used up on 32-bit builds.
Add a build-time assertion to prevent 64-bit developers from accidentally
breaking things.
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Cc: "Huang, Ying" <ying.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
AS_EXITING = __GFP_BITS_SHIFT + 4, /* final truncate in progress */
/* writeback related tags are not used */
AS_NO_WRITEBACK_TAGS = __GFP_BITS_SHIFT + 5,
+
+ AS_LAST_FLAG,
};
static inline void mapping_set_error(struct address_space *mapping, int error)
#include <linux/pid_namespace.h>
#include <linux/device.h>
#include <linux/kthread.h>
+#include <linux/pagemap.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/idr.h>
*/
static void __init mm_init(void)
{
+ /* Does address_space.flags still fit into a 32-bit ulong? */
+ BUILD_BUG_ON(AS_LAST_FLAG > 32);
+
/*
* page_ext requires contiguous pages,
* bigger than MAX_ORDER unless SPARSEMEM.