Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp410397rwb; Thu, 22 Sep 2022 01:03:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7yUwo314Vhg1Z4v9K+2hihvCfkld3tDDfGVL3kglcriu0ZNUazBaLJwZDdjQG2GHep0US+ X-Received: by 2002:a17:906:ef90:b0:77f:8f0d:e925 with SMTP id ze16-20020a170906ef9000b0077f8f0de925mr1707950ejb.622.1663833816981; Thu, 22 Sep 2022 01:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663833816; cv=none; d=google.com; s=arc-20160816; b=ouJb80Klzu4VN0ERt5R/v8IbcPB+TFSbUJQmw2xtwax7W2i5pm0xvK7aDi5SMYo/0/ HYzD6+tpSgVJa5GYS7MVkOWA0GXPd01zpWYCohjXw+IUp9+C1ub9pYvDsd7IrkLHeGju ct/4QLZXEPC+7jwM9VHqXOOUQ5KuwmXMtmPRwIuPJg7Mv7sn+yItulJR0PXpBKeogUpB GTPIJtUZNWCFnFxc4iCBZ6X+8XpbeeBvh/GznhRFnyD5V/EGCamlL5k/YPznxit5oWIl 2Alpx6xuHpj05MWG+JGnsNVhFI+szclsMgoJBUuRqlwykGJc7FebhN4WsQM5p5ct2/od qjRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=fl0wlTC33AcTPxdaRLLiD3R7c5cfwVsXvsNdX5241Yc=; b=Jsck9UBhYlTlnPYidYhXfKeHCBhMicqFKSAv8gi2+5hHkDsD4+VQ5j1+sHQ32m7rZA xk2LsBCbe6ioUmoU5k8QPwsCQH1GzF4WwHZ7UwJEy8BGZiIPATwJET8giDwsbGu2VE1N N122xtQ2LPkZDtcPUUo2j09bLW0JLhmDCD7gpjb+PInAvAOpAHNbAtxldOlqCKlOqIFI 9wjB5dfqaNxK51PfbfE8JgODc8Vq1ioj43JSvaLoGAm59qn6hsS5cWY6+bVouuMas/qK Bfexs7vGdzdRuQcXs5gEBgzV36ts5291+R2eGFWUjcPWTr/u676ScMOxtSQWYV49BTKJ pS/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a05640227ce00b004520b01a355si5425946ede.52.2022.09.22.01.03.09; Thu, 22 Sep 2022 01:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbiIVGg1 (ORCPT + 99 others); Thu, 22 Sep 2022 02:36:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230108AbiIVGgV (ORCPT ); Thu, 22 Sep 2022 02:36:21 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8BB6B6D02 for ; Wed, 21 Sep 2022 23:36:19 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0VQRI4-C_1663828576; Received: from 30.97.48.87(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VQRI4-C_1663828576) by smtp.aliyun-inc.com; Thu, 22 Sep 2022 14:36:17 +0800 Message-ID: Date: Thu, 22 Sep 2022 14:36:34 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [RFC 2/6] mm/migrate_pages: split unmap_and_move() to _unmap() and _move() To: Huang Ying , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Andrew Morton , Zi Yan , Yang Shi , Oscar Salvador , Matthew Wilcox References: <20220921060616.73086-1-ying.huang@intel.com> <20220921060616.73086-3-ying.huang@intel.com> From: Baolin Wang In-Reply-To: <20220921060616.73086-3-ying.huang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/21/2022 2:06 PM, Huang Ying wrote: > This is a preparation patch to batch the page unmapping and moving > for the normal pages and THP. > > In this patch, unmap_and_move() is split to migrate_page_unmap() and > migrate_page_move(). So, we can batch _unmap() and _move() in > different loops later. To pass some information between unmap and > move, the original unused newpage->mapping and newpage->private are > used. > > Signed-off-by: "Huang, Ying" > Cc: Zi Yan > Cc: Yang Shi > Cc: Baolin Wang > Cc: Oscar Salvador > Cc: Matthew Wilcox > --- Looks good to me. Reviewed-by: Baolin Wang