[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <86802c440801071843p583f390as53f8b600622b93b2@mail.gmail.com>
Date: Mon, 7 Jan 2008 18:43:46 -0800
From: "Yinghai Lu" <yhlu.kernel@...il.com>
To: "Andrew Morton" <akpm@...ux-foundation.org>,
"Christoph Lameter" <clameter@....com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
"Adrian Bunk" <bunk@...sta.de>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: free_pages_check
wonder why free_pages_check mm/page_alloc.c is using bit OR than logical OR
@@ -450,9 +450,9 @@ static inline void __free_one_page(struc
static inline int free_pages_check(struct page *page)
{
- if (unlikely(page_mapcount(page) |
- (page->mapping != NULL) |
- (page_count(page) != 0) |
+ if (unlikely(page_mapcount(page) ||
+ (page->mapping != NULL) ||
+ (page_count(page) != 0) ||
(page->flags & (
1 << PG_lru |
1 << PG_private |
YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists