linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: cc <rainccrun@gmail.com>
To: mhocko@suse.com
Cc: rppt@linux.ibm.com, akpm@linux-foundation.org,
	rppt@linux.vnet.ibm.com, pasha.tatashin@oracle.com,
	Jonathan Corbet <corbet@lwn.net>,
	stefan@agner.ch, malat@debian.org, neelx@redhat.com,
	andriy.shevchenko@linux.intel.com, linux-mm@kvack.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mm: Fix a typo in __next_mem_pfn_range() comments.
Date: Thu, 8 Nov 2018 11:08:39 +0800	[thread overview]
Message-ID: <CAHOjbkHpUurp_Ca+163F6JVtRbfc8SRbMssvah9EVTxgNPCGJA@mail.gmail.com> (raw)
In-Reply-To: <20181107150312.GH27423@dhcp22.suse.cz>

[-- Attachment #1: Type: text/plain, Size: 1895 bytes --]

Thanks for all your replies,i am a newbie here.

Michal Hocko <mhocko@suse.com> 于2018年11月7日周三 下午11:03写道:

> On Wed 07-11-18 16:37:05, Mike Rapoport wrote:
> > On Wed, Nov 07, 2018 at 03:13:06PM +0100, Michal Hocko wrote:
> > > On Wed 07-11-18 15:54:22, Mike Rapoport wrote:
> > > > On Wed, Nov 07, 2018 at 11:25:49AM +0100, Michal Hocko wrote:
> > > > > On Wed 07-11-18 18:02:47, Chen Chang wrote:
> > > > > > mm: Fix a typo in __next_mem_pfn_range() comments.
> > > > >
> > > > > those two names are just too similar. And I wouldn't be surprised
> if
> > > > > there was a considerable overlap in functionality which just asks
> for
> > > > > a unification. In a separate patch of course.
> > > >
> > > > There is an overlap, but I'm not sure if the unification is straight
> > > > forward. The for_each_mem_pfn_range() is really simple iterator,
> while
> > > > for_each_mem_range() has additional logic based on memblock flags.
> > >
> > > Is there any reason we cannot emulate the former by later by type_b =
> > > NULL and flags=0?
> >
> > Mostly. There's a hotplug related check:
> >
> >       /* skip hotpluggable memory regions if needed */
> >       if (movable_node_is_enabled() && memblock_is_hotpluggable(m))
> >               continue;
> >
> > in __next_mem_range() that is not related to flags and type_b and I don't
> > understand hotplug enough to tell.
> >
> > Maybe this check can become
> >
> >       /* skip hotpluggable memory regions if needed */
> >         if ((flags & MEMBLOCK_HOTPLUG) && movable_node_is_enabled() &&
> >            memblock_is_hotpluggable(m))
> >                 continue;
> >
> > and then using flags=0 and type_b=NULL would be possible.
>
> OK, let's discuss this in a separate thread. A simlification in this
> area is always welcome ;)
>
> --
> Michal Hocko
> SUSE Labs
>

[-- Attachment #2: Type: text/html, Size: 2522 bytes --]

           reply	other threads:[~2018-11-08  3:08 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20181107150312.GH27423@dhcp22.suse.cz>]

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=CAHOjbkHpUurp_Ca+163F6JVtRbfc8SRbMssvah9EVTxgNPCGJA@mail.gmail.com \
    --to=rainccrun@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=corbet@lwn.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=malat@debian.org \
    --cc=mhocko@suse.com \
    --cc=neelx@redhat.com \
    --cc=pasha.tatashin@oracle.com \
    --cc=rppt@linux.ibm.com \
    --cc=rppt@linux.vnet.ibm.com \
    --cc=stefan@agner.ch \
    /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