lkml.org 
[lkml]   [2008]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectfree_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


\
 
 \ /
  Last update: 2008-01-08 03:47    [W:0.178 / U:0.164 seconds]
©2003-2014 Jasper Spaans. Advertise on this site