From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752474AbdAaN1F (ORCPT ); Tue, 31 Jan 2017 08:27:05 -0500 Received: from smtpbg337.qq.com ([14.17.44.32]:36389 "EHLO smtpbg337.qq.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752451AbdAaN0y (ORCPT ); Tue, 31 Jan 2017 08:26:54 -0500 X-Greylist: delayed 528 seconds by postgrey-1.27 at vger.kernel.org; Tue, 31 Jan 2017 08:26:53 EST X-QQ-Spam: true X-QQ-mid: esmtp27t1485868113t21ysqqxx X-QQ-SSF: 01000000000000201G110300000000V From: ysxie@foxmail.com To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: n-horiguchi@ah.jp.nec.com, mhocko@suse.com, akpm@linux-foundation.org, minchan@kernel.org, vbabka@suse.cz, mgorman@techsingularity.net, hannes@cmpxchg.org, iamjoonsoo.kim@lge.com, izumi.taku@jp.fujitsu.com, arbab@linux.vnet.ibm.com, vkuznets@redhat.com, ak@linux.intel.com, guohanjun@huawei.com, qiuxishi@huawei.com Subject: [PATCH v5 2/4] mm/migration: make isolate_movable_page always defined Date: Tue, 31 Jan 2017 21:06:19 +0800 Message-Id: <1485867981-16037-3-git-send-email-ysxie@foxmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485867981-16037-1-git-send-email-ysxie@foxmail.com> References: <1485867981-16037-1-git-send-email-ysxie@foxmail.com> X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgweb:bgweb139 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yisheng Xie Define isolate_movable_page as a static inline function when CONFIG_MIGRATION is not enable. It should return -EBUSY here which means failed to isolate movable pages. This patch do not have any functional change but prepare for later patch. Signed-off-by: Yisheng Xie Acked-by: Minchan Kim Suggested-by: Michal Hocko Cc: Naoya Horiguchi CC: Vlastimil Babka --- include/linux/migrate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 43d5deb..fa76b51 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -56,6 +56,8 @@ static inline int migrate_pages(struct list_head *l, new_page_t new, free_page_t free, unsigned long private, enum migrate_mode mode, int reason) { return -ENOSYS; } +static inline int isolate_movable_page(struct page *page, isolate_mode_t mode) + { return -EBUSY; } static inline int migrate_prep(void) { return -ENOSYS; } static inline int migrate_prep_local(void) { return -ENOSYS; } -- 1.9.1