diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-12-16 06:19:59 -0500 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-12-16 06:19:59 -0500 |
commit | 1a9b5b7fe0c5dad8a635288882d36785dea742f9 (patch) | |
tree | a179debe5795643c63db2bb7ffbcfb559fbf88d2 /include/linux/page-flags.h | |
parent | 31d3d3484f9bd263925ecaa341500ac2df3a5d9b (diff) |
mm: export stable page flags
Rename get_uflags() to stable_page_flags() and make it a global function
for use in the hwpoison page flags filter, which need to compare user
page flags with the value provided by user space.
Also move KPF_* to kernel-page-flags.h for use by user space tools.
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
CC: Nick Piggin <npiggin@suse.de>
CC: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index f9df6308af95..feee2ba8d06a 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -282,6 +282,8 @@ PAGEFLAG_FALSE(HWPoison) | |||
282 | #define __PG_HWPOISON 0 | 282 | #define __PG_HWPOISON 0 |
283 | #endif | 283 | #endif |
284 | 284 | ||
285 | u64 stable_page_flags(struct page *page); | ||
286 | |||
285 | static inline int PageUptodate(struct page *page) | 287 | static inline int PageUptodate(struct page *page) |
286 | { | 288 | { |
287 | int ret = test_bit(PG_uptodate, &(page)->flags); | 289 | int ret = test_bit(PG_uptodate, &(page)->flags); |