Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2113725pxm; Fri, 4 Mar 2022 09:36:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqmwCcp3OYeI70sfob9FEKnRGhgdhymiYugTiaZh/joESeT7uMR95RSSWvBsqdwP0KV4OE X-Received: by 2002:a17:906:2695:b0:6ce:f9c:b476 with SMTP id t21-20020a170906269500b006ce0f9cb476mr32071240ejc.235.1646415397253; Fri, 04 Mar 2022 09:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646415397; cv=none; d=google.com; s=arc-20160816; b=ZSgFvF7RVlxcE2zu6nSEu1OQttdVlfOa2hkckEfvqbJmsHlgRRTZCtlbzUB/ktEa4w fhX39VHeBG4gJRzPLWSD40/XSoOCnw4LoLQfTfo5ZFPdsNOMSOgoYffsNaTqVG/1RmF+ guYTNDStB4jBq0J1uIvrBdgpR8uqUEhHkeymGyRx0INIvpABwrZrptuZXD6yEOxw94wd NIKpZNXCCP4z4jpbtqToeP6qoXYhy1lQHJGvRnNJJF7SYXUv912AcjDVI8FpHMSalNw6 mQmyoOdc0k76M5Cl29bY3ermwGyymT09qS15/MoHR1b2terr6w5E0E0ZisrzrSQfQFoJ HQ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dxkq6fSmSidI5jxQNF6F1Isey3naDKJl+wbEQVSsuM4=; b=pLrWh2J6l6IqIY0SwWfuazTrYL262qvnMLjAHFDIBMzdYw3OS133wQmCbvIbGwKDqw BGkiiO1+MNSt50psL/pfxANmAsRsvmENuu8InUBEKl920ZVSgsav4dzzkYLs5xtDYNzQ j3PyWrPCeWRsRvwtKRR+HalXD2TJgsAnup1FTBub2Ex0MbAVBjF8MsaplERwOj3QaDjg bbDsH2jfzoHXelU4A9KLALBxSCsexQ8iuxCuY0Zb3J7iTcezXMoDFPvM1QYJZSSCuAbL GX/k66juq3jOHMZAw19fO2eDG+5yqzRHI9+R2RLEd1gU5/joAlWd5GYqfuC6TmjOmPds nNxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=YkmvT2pY; 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=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a1709062b8800b006cf723aeb54si3569009ejg.667.2022.03.04.09.36.12; Fri, 04 Mar 2022 09:36:37 -0800 (PST) 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; dkim=pass header.i=@bytedance-com.20210112.gappssmtp.com header.s=20210112 header.b=YkmvT2pY; 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=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235005AbiCDNtm (ORCPT + 99 others); Fri, 4 Mar 2022 08:49:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiCDNtl (ORCPT ); Fri, 4 Mar 2022 08:49:41 -0500 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5298663BD9 for ; Fri, 4 Mar 2022 05:48:53 -0800 (PST) Received: by mail-yb1-xb35.google.com with SMTP id u3so16952895ybh.5 for ; Fri, 04 Mar 2022 05:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dxkq6fSmSidI5jxQNF6F1Isey3naDKJl+wbEQVSsuM4=; b=YkmvT2pYJSwLyqzxe7ZiuTgqTHehcij3OgfSQMM1G9wKC+pGj+nepQnxvLkJD3xQbe GwRpzcXG3WQeIjAoaLcRTIw8psD18ZufUgk9tX5LH2aIAQuNR0Cahu4/McJ8wd6gZzvi luZDPBLLHlJnleHkPPudXkxeVQHWd0AC3onqha/ThPA5u8Kkh/J8/GgbbiPu7y/IkQCD SvEngsty4bE46BGPqb3wW85zP0D+WOf83towpFjc7pAVb0Zri9B0Vy50CFtpkwgVhhTi V+J0mQ0Uxj8DwCYfay7aW3eGcsiLKNEuNAKmnBtxXIiBo6RkPNSF3yk9DURTmdy12gIx b8Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dxkq6fSmSidI5jxQNF6F1Isey3naDKJl+wbEQVSsuM4=; b=6SQyHuJ3uvi6uCAlAoqOq6VQpWSIfdbbmfCft1fxbJR6wrTsm2W2gTEe/mtz7n2Tsu kG5VBnnnfJhm0UlflmFTHppFCwinfilsjJD/T9q7UFP9Rpft8ShvdlnC/598CHU3+AZq IYnf3gDKjNmQyYTdDWIChQI20qnodz9qvtvIMME7Ww2fgiWnhIsHfbAk0Zrs1PvJRcNp X8d5waFj/4CHzNxaN2UX9o6jhw9BknYUz01PlwIk7DDqUyN0PiSctoWib2/IE77oSQCv jFV2x7RDe5eBBOh/MvqXb1di6AIvhQox/09ktFt3HvDnzvwHXzRD+NRlYXwUheub/yFK b4/g== X-Gm-Message-State: AOAM5326lTwssWvPTfLczFIaGu9fXijUb9ElRb37lT0balRjCerTbzT5 xsL0Jg14nhjCnPZlE8Tau08/ClazzBSZi0NneAno4g== X-Received: by 2002:a25:3d47:0:b0:624:7b42:9f0f with SMTP id k68-20020a253d47000000b006247b429f0fmr38966576yba.254.1646401732585; Fri, 04 Mar 2022 05:48:52 -0800 (PST) MIME-Version: 1.0 References: <20220304093409.25829-1-linmiaohe@huawei.com> <20220304093409.25829-2-linmiaohe@huawei.com> In-Reply-To: <20220304093409.25829-2-linmiaohe@huawei.com> From: Muchun Song Date: Fri, 4 Mar 2022 21:48:05 +0800 Message-ID: Subject: Re: [PATCH 01/16] mm/migration: remove unneeded local variable mapping_locked To: Miaohe Lin Cc: Andrew Morton , Mike Kravetz , Yang Shi , Matthew Wilcox , Huang Ying , Zi Yan , Minchan Kim , Alistair Popple , ave.hansen@linux.intel.com, o451686892@gmail.com, Mina Almasry , John Hubbard , Ralph Campbell , Peter Xu , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Michal Hocko , riel@redhat.com, Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Fri, Mar 4, 2022 at 5:35 PM Miaohe Lin wrote: > > When mapping_locked is true, TTU_RMAP_LOCKED is always set to ttu. We can > check ttu instead so mapping_locked can be removed. And ttu is either 0 > or TTU_RMAP_LOCKED now. Change '|=' to '=' to reflect this. > > Signed-off-by: Miaohe Lin Reviewed-by: Muchun Song Thanks.