From: Cong Wang <xiyou.wangcong@gmail.com>
To: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB
Date: Tue, 3 Jul 2012 09:56:45 +0000 (UTC) [thread overview]
Message-ID: <jsufks$tnk$1@dough.gmane.org> (raw)
In-Reply-To: 1341287837-7904-1-git-send-email-jiang.liu@huawei.com
On Tue, 03 Jul 2012 at 03:57 GMT, Jiang Liu <jiang.liu@huawei.com> wrote:
> --- a/arch/arm/mm/init.c
> +++ b/arch/arm/mm/init.c
> @@ -18,6 +18,7 @@
> #include <linux/initrd.h>
> #include <linux/of_fdt.h>
> #include <linux/highmem.h>
> +#include <linux/huge_mm.h>
> #include <linux/gfp.h>
> #include <linux/memblock.h>
> #include <linux/dma-contiguous.h>
> @@ -116,7 +117,7 @@ void show_mem(unsigned int filter)
> reserved++;
> else if (PageSwapCache(page))
> cached++;
> - else if (PageSlab(page))
> + else if (page_managed_by_slab(page))
> slab++;
slab.h should #include <linux/huge_mm.h>, not each C source file calls
page_managed_by_slab().
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2012-07-03 9:57 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 3:57 [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB Jiang Liu
2012-07-03 3:57 ` [RFC PATCH 2/4] mm: make consistent use of PG_slab flag Jiang Liu
2012-07-05 14:47 ` Christoph Lameter
2012-07-05 16:15 ` Jiang Liu
2012-07-05 17:37 ` Christoph Lameter
2012-07-06 8:30 ` Jiang Liu
2012-07-06 13:53 ` Christoph Lameter
2012-07-03 3:57 ` [RFC PATCH 3/4] SLAB: minor code cleanup Jiang Liu
2012-07-03 10:02 ` Cong Wang
2012-07-03 3:57 ` [RFC PATCH 4/4] mm: change slob's struct page definition to accomodate struct page changes Jiang Liu
2012-07-03 10:22 ` Cong Wang
2012-07-03 9:56 ` Cong Wang [this message]
2012-07-05 14:45 ` [RFC PATCH 1/4] mm: introduce a safer interface to check whether a page is managed by SLxB Christoph Lameter
2012-07-05 15:55 ` Jiang Liu
2012-07-05 17:36 ` Christoph Lameter
2012-07-06 7:29 ` Jiang Liu
2012-07-06 13:50 ` Christoph Lameter
2012-07-06 15:36 ` Jiang Liu
2012-09-04 9:18 ` Wen Congyang
2012-09-04 12:13 ` Jiang Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='jsufks$tnk$1@dough.gmane.org' \
--to=xiyou.wangcong@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).