linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Li Haifeng <omycle@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
	Christoph Lameter <cl@linux.com>,
	David Rientjes <rientjes@google.com>,
	Minchan Kim <minchan.kim@gmail.com>,
	Johannes Weiner <hannes@cmpxchg.org>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] mm: Fixup abandoned PG_buddy for private in struct page
Date: Thu, 6 Sep 2012 17:11:18 +0800	[thread overview]
Message-ID: <CAFNq8R65BCuTn2BDAQ=5twA0epaeR9tdJ2HTRb1tEWM15j0hQA@mail.gmail.com> (raw)

PG_buddy, an abandoned flag, indicates page(s) is/are free
and in buddy allocator. And when page(s) in buddy allocator,
the _mapcount will equal PAGE_BUDDY_MAPCOUNT_VALUE. So,
here, "_mapcount equals PAGE_BUDDY_MAPCOUNT_VALUE" instead
of "PG_buddy is set".

Signed-off-by: Haifeng Li <omycle@gmail.com>
---
 include/linux/mm_types.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
index 704a626..49d9247 100644
--- a/include/linux/mm_types.h
+++ b/include/linux/mm_types.h
@@ -126,7 +126,8 @@ struct page {
                                                 * if PagePrivate set; used for
                                                 * swp_entry_t if PageSwapCache;
                                                 * indicates order in the buddy
-                                                * system if PG_buddy is set.
+                                                * system if _mapcount equals
+                                                * PAGE_BUDDY_MAPCOUNT_VALUE.
                                                 */
 #if USE_SPLIT_PTLOCKS
                spinlock_t ptl;
--
1.7.5.4

             reply	other threads:[~2012-09-06  9:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06  9:11 Li Haifeng [this message]
2012-09-28 16:34 ` [PATCH 2/2] mm: Fixup abandoned PG_buddy for private in struct page Johannes Weiner

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='CAFNq8R65BCuTn2BDAQ=5twA0epaeR9tdJ2HTRb1tEWM15j0hQA@mail.gmail.com' \
    --to=omycle@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=cl@linux.com \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minchan.kim@gmail.com \
    --cc=rientjes@google.com \
    /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).