* Qestion about page->_count and page reclaim
@ 2013-02-04 10:34 Li Haifeng
0 siblings, 0 replies; only message in thread
From: Li Haifeng @ 2013-02-04 10:34 UTC (permalink / raw)
To: linux-mm
[-- Attachment #1: Type: text/plain, Size: 528 bytes --]
Hi, all in kernel.
The page->_count is the page frame's usage count.
When page is allocated, the page will be refcounted, and 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?
Thanks.
[-- Attachment #2: Type: text/html, Size: 1389 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-04 10:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-04 10:34 Qestion about page->_count and page reclaim Li Haifeng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox