From patchwork Thu Aug 5 15:05:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baolin Wang X-Patchwork-Id: 12421421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4BFBFC432BE for ; Thu, 5 Aug 2021 15:06:22 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 15E0060EEA for ; Thu, 5 Aug 2021 15:06:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 15E0060EEA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id AC9936B0072; Thu, 5 Aug 2021 11:06:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A77C96B0073; Thu, 5 Aug 2021 11:06:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9672F8D0001; Thu, 5 Aug 2021 11:06:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0219.hostedemail.com [216.40.44.219]) by kanga.kvack.org (Postfix) with ESMTP id 7650A6B0072 for ; Thu, 5 Aug 2021 11:06:21 -0400 (EDT) Received: from smtpin38.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 24D43252D2 for ; Thu, 5 Aug 2021 15:06:21 +0000 (UTC) X-FDA: 78441352962.38.8E3C283 Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by imf15.hostedemail.com (Postfix) with ESMTP id CB880D0020C9 for ; Thu, 5 Aug 2021 15:06:16 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R671e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Ui3.PO-_1628175967; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0Ui3.PO-_1628175967) by smtp.aliyun-inc.com(127.0.0.1); Thu, 05 Aug 2021 23:06:07 +0800 From: Baolin Wang To: akpm@linux-foundation.org Cc: baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] Some cleanup for page migration Date: Thu, 5 Aug 2021 23:05:55 +0800 Message-Id: X-Mailer: git-send-email 1.8.3.1 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: CB880D0020C9 Authentication-Results: imf15.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf15.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.54 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com X-Stat-Signature: ymyrnufyumrjfmrny8q1ja4g4nywoqj7 X-HE-Tag: 1628175976-992591 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, This patch set did some cleanup and improvements for the page migration, please help to review. Thanks a lot. Note: the patch set is against 20210804 linux-next. Baolin Wang (5): mm: migrate: Move the page count validation to the proper place mm: migrate: Introduce a local variable to get the number of pages mm: migrate: Fix the incorrect function name in comments mm: migrate: Change to use bool type for 'page_was_mapped' mm: migrate: Remove redundant goto labels mm/migrate.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-)