#define PG_reclaim 17 /* To be reclaimed asap */
#define PG_nosave_free 18 /* Free, should not be written */
#define PG_buddy 19 /* Page is free, on buddy lists */
- #define PG_gup 20 /* Page pin may be because of gup */
+#define PG_constant 21 /* To mark if the page is constant */
#define PG_xpmem 27 /* Testing for xpmem. */
#include <linux/syscalls.h>
#include <linux/cpuset.h>
+#include <linux/rmap.h>
- #include "filemap.h"
+ #include <linux/hardirq.h> /* for BUG_ON(!in_atomic()) only */
+ #include <trace/mm.h>
#include "internal.h"
-
@@ -567,11 +568,55 @@
if (!test_clear_page_writeback(page))
BUG();