linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Qestion about page->_count and page reclaim
@ 2013-02-05  8:33 Li Haifeng
  0 siblings, 0 replies; only message in thread
From: Li Haifeng @ 2013-02-05  8:33 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel

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?

Thanks.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-05  8:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-05  8:33 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;
as well as URLs for NNTP newsgroup(s).