diff options
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r-- | include/linux/page-flags.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 49e907bd067f..feee2ba8d06a 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -275,13 +275,15 @@ PAGEFLAG_FALSE(Uncached) | |||
275 | 275 | ||
276 | #ifdef CONFIG_MEMORY_FAILURE | 276 | #ifdef CONFIG_MEMORY_FAILURE |
277 | PAGEFLAG(HWPoison, hwpoison) | 277 | PAGEFLAG(HWPoison, hwpoison) |
278 | TESTSETFLAG(HWPoison, hwpoison) | 278 | TESTSCFLAG(HWPoison, hwpoison) |
279 | #define __PG_HWPOISON (1UL << PG_hwpoison) | 279 | #define __PG_HWPOISON (1UL << PG_hwpoison) |
280 | #else | 280 | #else |
281 | PAGEFLAG_FALSE(HWPoison) | 281 | 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); |