Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348009
b: refs/heads/master
c: ad4b3fb
h: refs/heads/master
i:
  348007: 72f138d
v: v3
  • Loading branch information
Christoffer Dall authored and Linus Torvalds committed Dec 26, 2012
1 parent b532451 commit 849c0a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 637704cbc95c02d18741b4a6e7a5d2397f8b28ce
refs/heads/master: ad4b3fb7ff9940bcdb1e4cd62bd189d10fa636ba
8 changes: 7 additions & 1 deletion trunk/include/linux/page-flags.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static inline void ClearPageCompound(struct page *page)
* pages on the LRU and/or pagecache.
*/
TESTPAGEFLAG(Compound, compound)
__PAGEFLAG(Head, compound)
__SETPAGEFLAG(Head, compound) __CLEARPAGEFLAG(Head, compound)

/*
* PG_reclaim is used in combination with PG_compound to mark the
Expand All @@ -374,8 +374,14 @@ __PAGEFLAG(Head, compound)
* PG_compound & PG_reclaim => Tail page
* PG_compound & ~PG_reclaim => Head page
*/
#define PG_head_mask ((1L << PG_compound))
#define PG_head_tail_mask ((1L << PG_compound) | (1L << PG_reclaim))

static inline int PageHead(struct page *page)
{
return ((page->flags & PG_head_tail_mask) == PG_head_mask);
}

static inline int PageTail(struct page *page)
{
return ((page->flags & PG_head_tail_mask) == PG_head_tail_mask);
Expand Down

0 comments on commit 849c0a1

Please sign in to comment.