Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6257490rwp; Mon, 17 Jul 2023 18:45:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIjowAdMNUeDv1S+Cge8SqMaMIR2EVbPEGUOLCavoAVdnF0Pb67duELSLWoM/Dvpmni8sF X-Received: by 2002:a05:6a20:7da0:b0:134:b3af:57e7 with SMTP id v32-20020a056a207da000b00134b3af57e7mr5810008pzj.51.1689644757731; Mon, 17 Jul 2023 18:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689644757; cv=none; d=google.com; s=arc-20160816; b=Lockm5Fe7znOvCBuWRxdxnwgeL0LGnbZaKIv6XLGTqQ/OpgEFrsJZ+OEieAhjugiyo L8Dd8I2z4Inq4tSqNDZtTnhCGxYSSrPUUxlvLI3g+PtA3EA2+HQ+/rPu7zBmIHaT+3l7 fZgm86/t5XtzWEI5fAH6J3qKL0S1+Xo+JnJNcVl1R8CiAC4yv1cBrh+o//ijXH7XGCKl PXuzojxlHLn/0xwVxiYuYOVhNYxUjS29+z1oEFchUjhr7MJYYRgPoBmPUTNbp03krHaQ 9NgYnt2hG95uUmnaY4ZfHCPLwvtI6rARQro3whcfK4rYNzKKP44SjWDekTUODj/TxkST aOYA== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=0N8ACqLEvq0DLOLb2MxYJ/g6+udKAfdb76Eyy6VsokY=; fh=mr/ydgm48yZYslzx/cEfHJktUktubNbvNSoCMyuVhLk=; b=jia8tj3CuIgCyZFmrOjdLOMGuPEzLuZHuTrbKfCphx5azfcxKLD/q38edKTbOpug9W 7zIcjJ9TO/2ZAe7CxP1kRau9rUxjlPJXzs/KVaIMrpEbatv0zbQQIXkNYhE+NNzswc9D 63akI6xXU4q6psgC8NhaIywE7q3QV//p4Q5w4Yrt7qRju7af97r/oil7h01f/DTOkPUy 2ilqpw4YzFMcY8d0/Kan8XK0TJRFYu+DWv3FtqKJ0oSryQy8tGYj81UVYLB24dr+U2oK nJJsnb8ey121TsHisxHNvibK9/pQ3AuEyohovHaV73OSF+eYKMOsQ4zvOvAZuc/RpXVD A5Aw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lc3-20020a170902fa8300b001b035ce0649si767638plb.372.2023.07.17.18.45.44; Mon, 17 Jul 2023 18:45:57 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjGRAv0 (ORCPT + 99 others); Mon, 17 Jul 2023 20:51:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbjGRAvY (ORCPT ); Mon, 17 Jul 2023 20:51:24 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0D11990; Mon, 17 Jul 2023 17:50:52 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4R4gN02ZJyz18LXj; Tue, 18 Jul 2023 08:50:08 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 18 Jul 2023 08:50:49 +0800 Message-ID: <66b5cff0-3c06-222a-c8ab-af18dc7af7f1@huawei.com> Date: Tue, 18 Jul 2023 08:50:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 2/5] mm: use vma_is_stack() and vma_is_heap() Content-Language: en-US To: David Hildenbrand , Andrew Morton CC: , , , , , , References: <20230712143831.120701-1-wangkefeng.wang@huawei.com> <20230712143831.120701-3-wangkefeng.wang@huawei.com> <2000511c-d551-5b3d-a9a9-adb4ba3be1f1@redhat.com> From: Kefeng Wang In-Reply-To: <2000511c-d551-5b3d-a9a9-adb4ba3be1f1@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 2023/7/17 18:25, David Hildenbrand wrote: > On 12.07.23 16:38, Kefeng Wang wrote: >> Use the helpers to simplify code. >> >> Signed-off-by: Kefeng Wang >> --- >>   fs/proc/task_mmu.c   | 24 ++++-------------------- >>   fs/proc/task_nommu.c | 15 +-------------- >>   2 files changed, 5 insertions(+), 34 deletions(-) >> > > Please squash patch #1 and this patch and call it something like > > "mm: factor out VMA stack and heap checks" > > And then, maybe also keep the comments in these functions, they sound > reasonable to have. Thanks, will re-post them. >