Re: How to get the number of free pages in a zone(2.6.18)?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK. I found the answer. It is simply could be done by 
zone->free_pages;

Sorry for the stupid question. :)

Best regards,
Adam

On Tue, Jan 12, 2010 at 3:33 PM, Adam Jiang <jiang.adam@xxxxxxxxx> wrote:
Hello, list.

I want to backport mem_notify.patch to linux-2.6.18. Most of the things goes
well and simple, but a problem is in mem_notify.c there's a function named
mem_notify_poll() used the new zone_page_state() with NR_FREE_PAGES which is
not in 2.6.18. I just want to change the line to get free pages in a zone in
another way rather than patch the other headers in linux/. What should I do?
Is there a good method to get the number of free pages in 2.6.18? Any help
will be appreciate. Thanks you very much.

Best regards,
--
Adam Jiang
-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-
e-mail:jiang.adam@xxxxxxxxx
http://www.adamjiang.com
-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-



--
Adam Jiang
-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-
e-mail:jiang.adam@xxxxxxxxx
http://www.adamjiang.com
-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-☆-★-

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux