[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1402671668.7963.16.camel@misato.fc.hp.com>
Date: Fri, 13 Jun 2014 09:01:08 -0600
From: Toshi Kani <toshi.kani@...com>
To: Tang Chen <tangchen@...fujitsu.com>
Cc: hutao@...fujitsu.com, gregkh@...uxfoundation.org,
akpm@...ux-foundation.org, tj@...nel.org, hpa@...or.com,
mingo@...e.hu, laijs@...fujitsu.com,
isimatu.yasuaki@...fujitsu.com, guz.fnst@...fujitsu.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH v2 RESEND 2/2] mem-hotplug: Introduce MMOP_OFFLINE to
replace the hard coding -1.
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@...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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists