From: Toshi Kani <toshi.kani@hp.com>
To: Tang Chen <tangchen@cn.fujitsu.com>
Cc: hutao@cn.fujitsu.com, gregkh@linuxfoundation.org,
akpm@linux-foundation.org, tj@kernel.org, hpa@zytor.com,
mingo@elte.hu, laijs@cn.fujitsu.com,
isimatu.yasuaki@jp.fujitsu.com, guz.fnst@cn.fujitsu.com,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH v2 RESEND 2/2] mem-hotplug: Introduce MMOP_OFFLINE to replace the hard coding -1.
Date: Fri, 13 Jun 2014 09:01:08 -0600 [thread overview]
Message-ID: <1402671668.7963.16.camel@misato.fc.hp.com> (raw)
In-Reply-To: <1402032829-18455-1-git-send-email-tangchen@cn.fujitsu.com>
On Fri, 2014-06-06 at 13:33 +0800, Tang Chen wrote:
> In store_mem_state(), we have:
> ......
> 334 else if (!strncmp(buf, "offline", min_t(int, count, 7)))
> 335 online_type = -1;
> ......
> 355 case -1:
> 356 ret = device_offline(&mem->dev);
> 357 break;
> ......
>
> Here, "offline" is hard coded as -1.
>
> This patch does the following renaming:
> ONLINE_KEEP -> MMOP_ONLINE_KEEP
> ONLINE_KERNEL -> MMOP_ONLINE_KERNEL
> ONLINE_MOVABLE -> MMOP_ONLINE_MOVABLE
>
> and introduce MMOP_OFFLINE = -1 to avoid hard coding.
>
> Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
> ---
> drivers/base/memory.c | 18 +++++++++---------
> include/linux/memory_hotplug.h | 9 +++++----
> mm/memory_hotplug.c | 9 ++++++---
> 3 files changed, 20 insertions(+), 16 deletions(-)
The patch does not apply cleanly to the current top of the tree. Can
you rebase the patch?
Thanks,
-Toshi
WARNING: multiple messages have this Message-ID (diff)
From: Toshi Kani <toshi.kani@hp.com>
To: Tang Chen <tangchen@cn.fujitsu.com>
Cc: hutao@cn.fujitsu.com, gregkh@linuxfoundation.org,
akpm@linux-foundation.org, tj@kernel.org, hpa@zytor.com,
mingo@elte.hu, laijs@cn.fujitsu.com,
isimatu.yasuaki@jp.fujitsu.com, guz.fnst@cn.fujitsu.com,
linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH v2 RESEND 2/2] mem-hotplug: Introduce MMOP_OFFLINE to replace the hard coding -1.
Date: Fri, 13 Jun 2014 09:01:08 -0600 [thread overview]
Message-ID: <1402671668.7963.16.camel@misato.fc.hp.com> (raw)
In-Reply-To: <1402032829-18455-1-git-send-email-tangchen@cn.fujitsu.com>
On Fri, 2014-06-06 at 13:33 +0800, Tang Chen wrote:
> In store_mem_state(), we have:
> ......
> 334 else if (!strncmp(buf, "offline", min_t(int, count, 7)))
> 335 online_type = -1;
> ......
> 355 case -1:
> 356 ret = device_offline(&mem->dev);
> 357 break;
> ......
>
> Here, "offline" is hard coded as -1.
>
> This patch does the following renaming:
> ONLINE_KEEP -> MMOP_ONLINE_KEEP
> ONLINE_KERNEL -> MMOP_ONLINE_KERNEL
> ONLINE_MOVABLE -> MMOP_ONLINE_MOVABLE
>
> and introduce MMOP_OFFLINE = -1 to avoid hard coding.
>
> Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
> ---
> drivers/base/memory.c | 18 +++++++++---------
> include/linux/memory_hotplug.h | 9 +++++----
> mm/memory_hotplug.c | 9 ++++++---
> 3 files changed, 20 insertions(+), 16 deletions(-)
The patch does not apply cleanly to the current top of the tree. Can
you rebase the patch?
Thanks,
-Toshi
--
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:[~2014-06-13 15:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-06 3:58 [PATCH v2 0/2] Fix for memory online/offline Tang Chen
2014-06-06 3:58 ` Tang Chen
2014-06-06 3:58 ` [PATCH v2 1/2] mem-hotplug: Avoid illegal state prefixed with legal state when changing state of memory_block Tang Chen
2014-06-06 3:58 ` Tang Chen
2014-06-13 14:59 ` Toshi Kani
2014-06-13 14:59 ` Toshi Kani
2014-06-06 3:58 ` [PATCH v2 2/2] mem-hotplug: Introduce MMOP_OFFLINE to replace the hard coding -1 Tang Chen
2014-06-06 3:58 ` Tang Chen
2014-06-06 5:15 ` Hu Tao
2014-06-06 5:15 ` Hu Tao
2014-06-06 5:33 ` [PATCH v2 RESEND " Tang Chen
2014-06-06 5:33 ` Tang Chen
2014-06-12 7:48 ` Tang Chen
2014-06-12 7:48 ` Tang Chen
2014-06-13 15:01 ` Toshi Kani [this message]
2014-06-13 15:01 ` Toshi Kani
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=1402671668.7963.16.camel@misato.fc.hp.com \
--to=toshi.kani@hp.com \
--cc=akpm@linux-foundation.org \
--cc=gregkh@linuxfoundation.org \
--cc=guz.fnst@cn.fujitsu.com \
--cc=hpa@zytor.com \
--cc=hutao@cn.fujitsu.com \
--cc=isimatu.yasuaki@jp.fujitsu.com \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@elte.hu \
--cc=tangchen@cn.fujitsu.com \
--cc=tj@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.