Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3176356pxb; Sat, 26 Mar 2022 12:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE2wxw3Qg/hZvX6J9MCZPOAT7+v4nI0iAtL/FF8p4t+v6VQWtQuftNFjVZwdWThBd5BZFZ X-Received: by 2002:a05:6830:11d6:b0:5b2:5a37:3cc7 with SMTP id v22-20020a05683011d600b005b25a373cc7mr6938873otq.381.1648323909192; Sat, 26 Mar 2022 12:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648323909; cv=none; d=google.com; s=arc-20160816; b=Y3tVXF8CjTiGbzNeIFo9zWXq6XX1mNAe+DeQGh1epBOYc2PmU1+7Efo+WKobgDuGEp bOtM/w4gjQA2hmPc6Zu7tGQ8hv5pYLDXuKsp/2zgqogS/LO2y2gtPAViQ6uzCJ6Case4 +NCTvuo+V9QezeUbpi74TQWyWC+19q1vgC393h2ZTbtEaermUuMmc2K/F3ntzJXFHGnp y9wzl1NIhhVG1X3dZbTeGq+SXWU2BbET/qRflysMvDjOU3hE7m6PkxEa7wGymWOcWUUD 0w3TYgMxHjDDuZkvRMMUjMVVreQI1CBc0c8QpsV9nkgj4thxNN+7eHvXj80M/i1+3EdI A85A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=8L+jZ6rI/hIaqFsPeBM/h2Qk4gIWDXElqI2aBslvgOU=; b=xIilWql8Clj14HVZFfrRMpW05RWuOrCzE66daRwRQhlsMdrv+1LM7GqLqGEC5Iv22c Tj0i/KLJZVuwkAE+SeH2aaXLrSMAW4o2pWbhyu2Cxuxxx3BSU7uN21Ua0fYG/2Fvo7e/ /OmNekiOKX6J7bFpMQwtHXalAtWRg+b8IsIfzVV/m/J0+ED/0fGubUxOiFgy7Je7kojl sVFLjHP8oEeQwUAFcrTA6mylZDGpNBLFGIjf7RLQP0jftPnqM1kwuaaC9H4CGGIAxi/k wrI9IgRGIaI2B7kXMACdDcbWlgwYIaBQhGMW35ejtodGWfP6RTefomOUuk+IjD/Mz1IV 9MjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SCqvsxxS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a9d4d8f000000b005cdb16b539dsi5106944otk.92.2022.03.26.12.44.56; Sat, 26 Mar 2022 12:45:09 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SCqvsxxS; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232262AbiCZJyp (ORCPT + 99 others); Sat, 26 Mar 2022 05:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiCZJyl (ORCPT ); Sat, 26 Mar 2022 05:54:41 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE937270850 for ; Sat, 26 Mar 2022 02:53:04 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id r13so19625057ejd.5 for ; Sat, 26 Mar 2022 02:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8L+jZ6rI/hIaqFsPeBM/h2Qk4gIWDXElqI2aBslvgOU=; b=SCqvsxxSW3gGPttWOvSTtYuI9OT7OCiGiE7N8ZtZm5NAzkYY4s+72pHHncAcXj1yRR sSAW7OmmITT1Ds8wtTbJyVr4QB6tC/GrYCqApRU8WPJJvjdN+tBHBnwabhFpAROZVgX6 ZCJqP5FNiQ7SMvKgLTd+Jz4ryTjEldt7GxKR3h23qSEMaVBXnVIwImn/VJIS56qfAafZ VFs+gCyftJkdks1jiYZWA95jYD47DL8HWDGKfBx3h8cj7MjvrEVhOEF8116nCl6LJ56/ U4pPbCE22HJEzWsu8gJE82tCSSOntoeDJcjYtPbmQcJz2wBInTX90SbJ5S4K7lOo7K1I NjUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=8L+jZ6rI/hIaqFsPeBM/h2Qk4gIWDXElqI2aBslvgOU=; b=OHQynX5E9hm3k00FIXuRv3LiZkHY3X1kKm+5ziEg1sMP0auUMyjPTITu81ZrTcBMSV P3ZtEq/JR8XsPC0aIPHMAYjckttjdloiVNiA9VMyXayGPYpr052CD5qxGj1DRMFCrBd7 QA1mYegmxhTkvAnY0yN8Ccu0Q1DnMYw1zIF00mWSB1RQ1o3iA4cSET6yZgb0bznwS8JR qi59pA0p40xWNblQqrsjZYTa+HzjGL/6y60mnAe04M3O/n8pYPatcA5CAgRHOG4nieMk jjPoXoYee8ioDRHRYgWEaUcJTEzm9FdqsX1KrOnOZf0bof4URdQrDsmGsrPxXYh0LgTa CQEw== X-Gm-Message-State: AOAM531u2DnQVGyN5fGZui7PSLHaxB2w9gdczOJvfkfhFSwFfKBch0Qh tZTsJI1G5txTBFeSQLFcXAk= X-Received: by 2002:a17:906:a20c:b0:6ce:a87e:5013 with SMTP id r12-20020a170906a20c00b006cea87e5013mr15833751ejy.379.1648288383284; Sat, 26 Mar 2022 02:53:03 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id v5-20020a50c405000000b004161123bf7asm3847227edf.67.2022.03.26.02.53.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Mar 2022 02:53:02 -0700 (PDT) Date: Sat, 26 Mar 2022 09:53:02 +0000 From: Wei Yang To: Miaohe Lin Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/mremap: use helper mlock_future_check Message-ID: <20220326095302.n2jcsgjfjt7mwkkz@master> Reply-To: Wei Yang References: <20220322112004.27380-1-linmiaohe@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220322112004.27380-1-linmiaohe@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Tue, Mar 22, 2022 at 07:20:04PM +0800, Miaohe Lin wrote: >Use helper mlock_future_check to check whether it's safe to resize the >locked_vm to simplify the code. Minor readability improvement. > >Signed-off-by: Miaohe Lin Reviewed-by: Wei Yang -- Wei Yang Help you, Help me