aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/page-flags.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-03-26 11:18:44 -0400
committerIngo Molnar <mingo@kernel.org>2012-03-26 11:19:03 -0400
commit7fd52392c56361a40f0c630a82b36b95ca31eac6 (patch)
tree14091de24c6b28ea4cae9826f98aeedb7be091f5 /include/linux/page-flags.h
parentb01c3a0010aabadf745f3e7fdb9cab682e0a28a2 (diff)
parente22057c8599373e5caef0bc42bdb95d2a361ab0d (diff)
Merge branch 'linus' into perf/urgent
Merge reason: we need to fix a non-trivial merge conflict. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/page-flags.h')
-rw-r--r--include/linux/page-flags.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index e90a673be67e..c88d2a9451af 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -6,6 +6,7 @@
6#define PAGE_FLAGS_H 6#define PAGE_FLAGS_H
7 7
8#include <linux/types.h> 8#include <linux/types.h>
9#include <linux/bug.h>
9#ifndef __GENERATING_BOUNDS_H 10#ifndef __GENERATING_BOUNDS_H
10#include <linux/mm_types.h> 11#include <linux/mm_types.h>
11#include <generated/bounds.h> 12#include <generated/bounds.h>
@@ -414,11 +415,26 @@ static inline int PageTransHuge(struct page *page)
414 return PageHead(page); 415 return PageHead(page);
415} 416}
416 417
418/*
419 * PageTransCompound returns true for both transparent huge pages
420 * and hugetlbfs pages, so it should only be called when it's known
421 * that hugetlbfs pages aren't involved.
422 */
417static inline int PageTransCompound(struct page *page) 423static inline int PageTransCompound(struct page *page)
418{ 424{
419 return PageCompound(page); 425 return PageCompound(page);
420} 426}
421 427
428/*
429 * PageTransTail returns true for both transparent huge pages
430 * and hugetlbfs pages, so it should only be called when it's known
431 * that hugetlbfs pages aren't involved.
432 */
433static inline int PageTransTail(struct page *page)
434{
435 return PageTail(page);
436}
437
422#else 438#else
423 439
424static inline int PageTransHuge(struct page *page) 440static inline int PageTransHuge(struct page *page)
@@ -430,6 +446,11 @@ static inline int PageTransCompound(struct page *page)
430{ 446{
431 return 0; 447 return 0;
432} 448}
449
450static inline int PageTransTail(struct page *page)
451{
452 return 0;
453}
433#endif 454#endif
434 455
435#ifdef CONFIG_MMU 456#ifdef CONFIG_MMU