MM: Fix macro argument substitution in PageHead() and PageTail()

Fix macro argument substitution in PageHead() and PageTail() - 'page' should
have brackets surrounding it (commit 6d7779538f).

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
David Howells 2008-02-21 16:12:45 +00:00 committed by Linus Torvalds
parent 5e45bb2eba
commit a62f735cbb
1 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ static inline void SetPageUptodate(struct page *page)
#define PG_head_tail_mask ((1L << PG_compound) | (1L << PG_reclaim)) #define PG_head_tail_mask ((1L << PG_compound) | (1L << PG_reclaim))
#define PageTail(page) ((page->flags & PG_head_tail_mask) \ #define PageTail(page) (((page)->flags & PG_head_tail_mask) \
== PG_head_tail_mask) == PG_head_tail_mask)
static inline void __SetPageTail(struct page *page) static inline void __SetPageTail(struct page *page)
@ -279,7 +279,7 @@ static inline void __ClearPageTail(struct page *page)
page->flags &= ~PG_head_tail_mask; page->flags &= ~PG_head_tail_mask;
} }
#define PageHead(page) ((page->flags & PG_head_tail_mask) \ #define PageHead(page) (((page)->flags & PG_head_tail_mask) \
== (1L << PG_compound)) == (1L << PG_compound))
#define __SetPageHead(page) __SetPageCompound(page) #define __SetPageHead(page) __SetPageCompound(page)
#define __ClearPageHead(page) __ClearPageCompound(page) #define __ClearPageHead(page) __ClearPageCompound(page)