Message ID | 20230712143831.120701-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1190692vqm; Wed, 12 Jul 2023 07:29:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlHlKfEIefHBi1bqaKy6BnSkaZbty/M3gOAyE48pmK2DhDZa0iqSTb5uG6QebY8EinK+HhZn X-Received: by 2002:a17:902:ab88:b0:1b8:918d:ac48 with SMTP id f8-20020a170902ab8800b001b8918dac48mr13529971plr.56.1689172180855; Wed, 12 Jul 2023 07:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689172180; cv=none; d=google.com; s=arc-20160816; b=oiDrpDl2kErt4aGGucIlMKF3BLzyl3yRfCcAqZE6uHlbTESbsFyfrzvGHkt1nZCxoe rfeoU4g9P6mm+Bf/1LDbg2FbQudQu0orREYpN1zQSCnNbZE3MC+GbS1GGqlnDme6sZFk tB9o/k2j07XmNIy3GgcJKrcHkOe7Obv33SB9AfwxjnUhC71Bde/18ZVQ3xjLpQi6FXtH 1PyfGyZj+nxQk5HBSmy6Szx8DZ6UhcjwU37wUuwPf9obA+mZjIe2DAeilo/EGnU8oMeK kbiTY8mMgxrC5KtPrAIphxlvFF8ijhGDd6a76Il+5YlFfsP6EHJRdNhly/LWoiEegSGo I+tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=N0CB1ZUiC+bYIEPvy9jvRnuRpNNJxbQaj5Qabaz6tf4=; fh=FRon72YwFeIVU/LlfmPNxuVFiduvQKfa+Ydvnh8xLfc=; b=xOII3FjKSmdQTE3fFBPU7kBpsq3JJY1aXz6gbO6ZX7iBEYz9hHdN6t9JJIQ9BmDBMY FOXF3evKiG5Va0EIVep4/ln9UVtTawebwDcdDCsPJqGRNYnVWWwxXyz+CpNSrmAs4dbX wXL5r6kgLEd0TVQHomU+ZvEtiXOk440Za4xZFgAIqj0lIqskrQkbGbwtgDFA25DHaa8A WhbHE06tRyDC1rl8VYDnhbO1Q//IbEQYf4oHSPHPJutpxr4lhgXvfvQsRXiW4WCUvqlK sRGNz1U5A3ZEgWN4qkyoqfhkloOIkFLE27SvCai/IjrP/c6GDxsPv3IRBn3GnfXRECxO E9ng== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a17090311c800b001b53c722c3fsi3643448plh.597.2023.07.12.07.29.28; Wed, 12 Jul 2023 07:29:40 -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 S232483AbjGLOZZ (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Wed, 12 Jul 2023 10:25:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232187AbjGLOZV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Jul 2023 10:25:21 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B11B5199E; Wed, 12 Jul 2023 07:25:16 -0700 (PDT) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4R1KgR32ywzMqVk; Wed, 12 Jul 2023 22:21:55 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) 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; Wed, 12 Jul 2023 22:25:11 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <amd-gfx@lists.freedesktop.org>, <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, <linux-mm@kvack.org>, <linux-perf-users@vger.kernel.org>, <selinux@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH 0/5] mm: convert to vma_is_heap/stack() Date: Wed, 12 Jul 2023 22:38:26 +0800 Message-ID: <20230712143831.120701-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771225408782936190 X-GMAIL-MSGID: 1771225408782936190 |
Series |
mm: convert to vma_is_heap/stack()
|
|
Message
Kefeng Wang
July 12, 2023, 2:38 p.m. UTC
Add vma_is_stack() and vma_is_heap() helper and use them to simplify code. Kefeng Wang (5): mm: introduce vma_is_stack() and vma_is_heap() mm: use vma_is_stack() and vma_is_heap() drm/amdkfd: use vma_is_stack() and vma_is_heap() selinux: use vma_is_stack() and vma_is_heap() perf/core: use vma_is_stack() and vma_is_heap() drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 5 +---- fs/proc/task_mmu.c | 24 ++++-------------------- fs/proc/task_nommu.c | 15 +-------------- include/linux/mm.h | 12 ++++++++++++ kernel/events/core.c | 22 +++++++--------------- security/selinux/hooks.c | 7 ++----- 6 files changed, 27 insertions(+), 58 deletions(-)