Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a62f735c authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

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



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

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5e45bb2e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ static inline void SetPageUptodate(struct page *page)

#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)

static inline void __SetPageTail(struct page *page)
@@ -279,7 +279,7 @@ static inline void __ClearPageTail(struct page *page)
	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))
#define __SetPageHead(page)	__SetPageCompound(page)
#define __ClearPageHead(page)	__ClearPageCompound(page)