This message generated a parse failure. Raw output follows here. Please use 'back' to navigate. From devnull@lkml.org Sat Apr 27 05:32:54 2024 >From mailfetcher Tue Jan 31 14:27:28 2017 Envelope-to: lkml@grols.ch Delivery-date: Tue, 31 Jan 2017 14:27:27 +0100 Received: from srv.grols.ch [5.172.41.101] by 7a0960bb2a7f with IMAP (fetchmail-6.3.26) for (single-drop); Tue, 31 Jan 2017 14:27:28 +0100 (CET) Received: from vger.kernel.org ([209.132.180.67]) by home.grols.ch with esmtp (Exim 4.88) (envelope-from ) id 1cYYT0-00048I-KH for lkml@grols.ch; Tue, 31 Jan 2017 14:27:27 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752026AbdAaN04 (ORCPT ); Tue, 31 Jan 2017 08:26:56 -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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1485869211; bh=qhGxY5DwPf0sU2uUftS4CEOCKOSy70f+QGJKDF9RXIA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=oeSstgMoGpMyed36QB8DkG+fcMcdBdsZrNi2 X-QQ-Spam: true X-QQ-mid: esmtp27t1485868113t21ysqqxx Received: from localhost.localdomain (unknown [112.17.241.32]) by esmtp4.qq.com (ESMTP) with id ; Tue, 31 Jan 2017 21:08:31 +0800 (CST) 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.vne 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 Precedence: bulk List-Id: X-Mailing-List: linux-kernel@vger.kernel.org Received-SPF: none client-ip=209.132.180.67; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org X-Spam-Score: 8.8 X-Spam-Score-Bar: ++++++++ X-Spam-Action: add header X-Spam-Report: Action: add header Symbol: FROM_NEQ_ENVFROM(0.00) Symbol: PRECEDENCE_BULK(0.00) Symbol: R_SPF_NA(0.00) Symbol: MISSING_MIME_VERSION(2.00) Symbol: DMARC_POLICY_SOFTFAIL(0.10) Symbol: FORGED_SENDER(0.30) Symbol: MIME_GOOD(-0.10) Symbol: FORGED_RECIPIENTS(2 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