[lkml]   [2013]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectQestion about page->_count and page reclaim
Hi, all in kernel.

The page->_count is the page frame's usage count. When page is
allocated, the page->_cout will be set 1.

After be allocated from buddy system, the page will be used by
process. get_page and put_page/put_page_testzero will used in pairs.
is it right?

When the page is reclaimed to buddy system, the page->_count should be
0. However, Because the initialization of page->_count is 1,
get_page() and put_page() is called in pairs, I coufused how
page->_count will be 0?


 \ /
  Last update: 2013-02-05 10:21    [W:0.023 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site