From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9031C433FE for ; Tue, 15 Mar 2022 12:24:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2ACC08D0002; Tue, 15 Mar 2022 08:24:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 25B228D0001; Tue, 15 Mar 2022 08:24:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1239B8D0002; Tue, 15 Mar 2022 08:24:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id 027DD8D0001 for ; Tue, 15 Mar 2022 08:24:09 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B0E152120D for ; Tue, 15 Mar 2022 12:24:09 +0000 (UTC) X-FDA: 79246537818.12.F5D2A74 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf02.hostedemail.com (Postfix) with ESMTP id BD59F8001E for ; Tue, 15 Mar 2022 12:24:08 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4KHss85k7bz1GCDX; Tue, 15 Mar 2022 20:19:08 +0800 (CST) Received: from [10.174.177.76] (10.174.177.76) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 15 Mar 2022 20:24:05 +0800 Subject: Re: [PATCH] mm/mlock: Use vma_lookup() instead of find_vma() To: Matthew Wilcox CC: , , , References: <20220314151728.20800-1-linmiaohe@huawei.com> From: Miaohe Lin Message-ID: Date: Tue, 15 Mar 2022 20:24:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.76] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: BD59F8001E X-Stat-Signature: gqnsf4o85hffsgs7zo6pnsiin96y5tct Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf02.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-HE-Tag: 1647347048-520889 X-Bogosity: Ham, tests=bogofilter, spamicity=0.006180, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On 2022/3/15 0:16, Matthew Wilcox wrote: > On Mon, Mar 14, 2022 at 11:17:28PM +0800, Miaohe Lin wrote: >> Using vma_lookup() verifies the start is contained in the found vma. This >> results in easier to read the code. > > This conflicts with the maple tree. IIUC, maple tree is the implementation detail of the vma and this patch should not be conflict with it. But there might be some trival conflict. Am I supposed to delay this patch until the maple tree's work is done? Thanks. > > . >