From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932359AbdA3PAh (ORCPT ); Mon, 30 Jan 2017 10:00:37 -0500 Received: from smtpbgbr2.qq.com ([54.207.22.56]:41839 "EHLO smtpbgbr2.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932337AbdA3PAO (ORCPT ); Mon, 30 Jan 2017 10:00:14 -0500 X-QQ-mid: esmtp32t1485788394tzmyy2lln X-QQ-SSF: 00000000000000606G110300000000V X-QQ-FEAT: r4zXc+C+CK6Es4TniM6fKmE8SRjAfRsj34y9PkVXqLrsIWzKFxio+oMgUS6+c y+YDcMXtUfrBl5mpdnKoBVQWqTGxwTtU7uHzGP/9KZxHBkFlOr0kDYaGuM8X95FrrGyMcBo zfTm9TzZBzwhn2Z4era4do5KEsio6ZxwBKIRWUlx3SmoAr0aKNfBG1+K6Bp8OYmfKBPW70m f2y4tgbh5WkLHo1VXRoYyhNsRDhITHUxJSksir4hKLNWGPuyaFOyKNxzlT1Jvf40kj7L/jd FDkg== X-QQ-GoodBg: 0 Subject: Re: [PATCH v4 1/2] mm/migration: make isolate_movable_page always defined To: Michal Hocko References: <1485356738-4831-1-git-send-email-ysxie@foxmail.com> <1485356738-4831-2-git-send-email-ysxie@foxmail.com> <20170126091833.GC6590@dhcp22.suse.cz> Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, n-horiguchi@ah.jp.nec.com, akpm@linux-foundation.org, minchan@kernel.org, vbabka@suse.cz, guohanjun@huawei.com, qiuxishi@huawei.com From: Yisheng Xie Message-ID: <588F54E8.5040303@foxmail.com> Date: Mon, 30 Jan 2017 22:59:52 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20170126091833.GC6590@dhcp22.suse.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgforeign:bgforeign1 X-QQ-Bgrelay: 1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Michal, Sorry for late reply. On 01/26/2017 05:18 PM, Michal Hocko wrote: > On Wed 25-01-17 23:05:37, ysxie@foxmail.com wrote: >> From: Yisheng Xie >> >> Define isolate_movable_page as a static inline function when >> CONFIG_MIGRATION is not enable. It should return false >> here which means failed to isolate movable pages. >> >> This patch do not have any functional change but prepare for >> later patch. > I think it would make more sense to make isolate_movable_page return int > and have the same semantic as __isolate_lru_page. This would be a better > preparatory patch for the later work. Yes, I think you are right, it is better to make isolate_movable_page return int just as what isolate_lru_page do, to make a better code style. It seems Andrew had already merged the fixed patch from Arnd Bergmann, Maybe I can rewrite it in a later patch if it is suitable :)