Qestion about page->_count and page reclaim
Vineet Agarwal
checkout.vineet at gmail.com
Tue Feb 5 05:24:23 EST 2013
On Tue, Feb 5, 2013 at 2:07 PM, Li Haifeng <omycle at gmail.com> wrote:
> 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?
>
>
Not sure but I suspect that the page->_count will be 0 whenever the file is
deleted.
> Thanks.
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130205/23f35868/attachment.html
More information about the Kernelnewbies
mailing list