aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/page-flags.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index d07c0bb2203a..13de789f0a5c 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -402,8 +402,8 @@ static inline void __ClearPageTail(struct page *page)
402 */ 402 */
403#define PAGE_FLAGS_CHECK_AT_PREP ((1 << NR_PAGEFLAGS) - 1) 403#define PAGE_FLAGS_CHECK_AT_PREP ((1 << NR_PAGEFLAGS) - 1)
404 404
405#endif /* !__GENERATING_BOUNDS_H */ 405#define PAGE_FLAGS_PRIVATE \
406 406 (1 << PG_private | 1 << PG_private_2)
407/** 407/**
408 * page_has_private - Determine if page has private stuff 408 * page_has_private - Determine if page has private stuff
409 * @page: The page to be checked 409 * @page: The page to be checked
@@ -411,8 +411,11 @@ static inline void __ClearPageTail(struct page *page)
411 * Determine if a page has private stuff, indicating that release routines 411 * Determine if a page has private stuff, indicating that release routines
412 * should be invoked upon it. 412 * should be invoked upon it.
413 */ 413 */
414#define page_has_private(page) \ 414static inline int page_has_private(struct page *page)
415 ((page)->flags & ((1 << PG_private) | \ 415{
416 (1 << PG_private_2))) 416 return !!(page->flags & PAGE_FLAGS_PRIVATE);
417}
418
419#endif /* !__GENERATING_BOUNDS_H */
417 420
418#endif /* PAGE_FLAGS_H */ 421#endif /* PAGE_FLAGS_H */