diff options
author | David Howells <dhowells@redhat.com> | 2008-02-21 11:12:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-21 19:40:15 -0500 |
commit | a62f735cbb1a0937ab6a9196dadf752694ef0b7f (patch) | |
tree | 4526f9b2a94550784c0005dbb239ef95db41a3c1 /include | |
parent | 5e45bb2ebac937f2eb62138b5d734f3ac7ce8e2f (diff) |
MM: Fix macro argument substitution in PageHead() and PageTail()
Fix macro argument substitution in PageHead() and PageTail() - 'page' should
have brackets surrounding it (commit 6d7779538f765963ced45a3fa4bed7ba8d2c277d).
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/page-flags.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index bbad43fb8181..b5b30f1c1e59 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h | |||
@@ -266,7 +266,7 @@ static inline void SetPageUptodate(struct page *page) | |||
266 | 266 | ||
267 | #define PG_head_tail_mask ((1L << PG_compound) | (1L << PG_reclaim)) | 267 | #define PG_head_tail_mask ((1L << PG_compound) | (1L << PG_reclaim)) |
268 | 268 | ||
269 | #define PageTail(page) ((page->flags & PG_head_tail_mask) \ | 269 | #define PageTail(page) (((page)->flags & PG_head_tail_mask) \ |
270 | == PG_head_tail_mask) | 270 | == PG_head_tail_mask) |
271 | 271 | ||
272 | static inline void __SetPageTail(struct page *page) | 272 | static inline void __SetPageTail(struct page *page) |
@@ -279,7 +279,7 @@ static inline void __ClearPageTail(struct page *page) | |||
279 | page->flags &= ~PG_head_tail_mask; | 279 | page->flags &= ~PG_head_tail_mask; |
280 | } | 280 | } |
281 | 281 | ||
282 | #define PageHead(page) ((page->flags & PG_head_tail_mask) \ | 282 | #define PageHead(page) (((page)->flags & PG_head_tail_mask) \ |
283 | == (1L << PG_compound)) | 283 | == (1L << PG_compound)) |
284 | #define __SetPageHead(page) __SetPageCompound(page) | 284 | #define __SetPageHead(page) __SetPageCompound(page) |
285 | #define __ClearPageHead(page) __ClearPageCompound(page) | 285 | #define __ClearPageHead(page) __ClearPageCompound(page) |