linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Gavin Shan <shangw@linux.vnet.ibm.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: linux-mm@kvack.org, akpm@linux-foundation.org
Subject: Re: [PATCH] mm/slab: remove duplicate check
Date: Tue, 15 May 2012 17:19:49 +0800	[thread overview]
Message-ID: <20120515091949.GA4887@shangw> (raw)
In-Reply-To: <20120514204219.GC1406@cmpxchg.org>

>> While allocateing pages using buddy allocator, the compound page
>> is probably split up to free pages. Under the circumstance, the
>> compound page should be destroied by function destroy_compound_page().
>> However, there has duplicate check to judge if the page is compound
>> one.
>> 
>> The patch removes the duplicate check since the function compound_order()
>> will returns 0 while the page hasn't PG_head set in function destroy_compound_page().
>> That's to say, the function destroy_compound_page() needn't check
>> PG_head any more through function PageHead().
>> 
>> Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
>
>Looks good!
>
>But the slab in the subject suggests it would not affect other parts
>of mm, while it actually affects THP, too.  Should probably be
>removed?
>
>Acked-by: Johannes Weiner <hannes@cmpxchg.org>
>

Thanks for looking into this, Johannes :-)

I'm not sure I should change the subject to "mm: xxx" and resend it
since it has been put into linux-mm next tree as the maillist mm-commits
told me. By the way, I even don't know how linux-mm next got sychronized
with linux mainline yet :-)

Thanks,
Gavin

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2012-05-15  9:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-11  9:16 [PATCH] mm/slab: remove duplicate check Gavin Shan
2012-05-14 20:42 ` Johannes Weiner
2012-05-15  9:19   ` Gavin Shan [this message]

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=20120515091949.GA4887@shangw \
    --to=shangw@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.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).