linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c
@ 2016-05-16 13:42 Wang Xiaoqiang
  2016-05-16 15:16 ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: Wang Xiaoqiang @ 2016-05-16 13:42 UTC (permalink / raw)
  To: vbabka, n-horiguchi, linux-kernel, linux-mm

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

Hi all,

    I am really confused about these two functions. The following code snippet:

if(unlikely(atomic_read(&page->_mapcount) != -1))
		bad_reason ="nonzero mapcount";if(unlikely(page->mapping != NULL))
		bad_reason ="non-NULL mapping";if(unlikely(page_ref_count(page) !=0))
		bad_reason ="nonzero _count";
        ...
Wouldn't the previous value of "bad_reason" be overwritten by 
the later? Hope to receive from you.

--

thx!
Wang Xiaoqiang

[-- Attachment #2: Type: text/html, Size: 1855 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-17  8:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-16 13:42 Question About Functions "__free_pages_check" and "check_new_page" in page_alloc.c Wang Xiaoqiang
2016-05-16 15:16 ` Michal Hocko
2016-05-17  1:06   ` Wang Xiaoqiang
2016-05-17  5:14     ` Vlastimil Babka
2016-05-17  8:17       ` Wang Xiaoqiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).