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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E568C433EF for ; Tue, 7 Jun 2022 09:52:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240248AbiFGJwI (ORCPT ); Tue, 7 Jun 2022 05:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232052AbiFGJv4 (ORCPT ); Tue, 7 Jun 2022 05:51:56 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10A69ED783 for ; Tue, 7 Jun 2022 02:50:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=V51MCqxi0VdJWmnfuDPQt2vBU7orKrYz4MHoXseJ8Uc=; b=lpBAKPfTbALftwi2xeDgAO3ehh 89/3lBrHiHenx6805RN9wWVwR3WhentuV2zuMFLZyWzx6wnUf0UcqRmi66uhJGFL6A8zCCbvQ5lm2 MqIKPjcdNJ2gcBkeKiEj4YQOntFHTsoDxkRaYLNPVjuf+Iki8zNhngnEIW02e0f21yrm51zN19mjK PPqfLGM1llNlEftGJkJ9sHwEqnPbaGBWZJ0MtqdZ0XxBfpR4XPlxQygkJ9J6uTXDCgdNBhN4yJpDs ZkOtNBLFB8gyoIJqtjHbE4PIR8fRskJgZn8cgxKR54IZUpGY7JQ/+4VX7SLuEXK8BKzWdr3OgoYqH oPA5AwcQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyVqY-006P3h-8g; Tue, 07 Jun 2022 09:49:58 +0000 Date: Tue, 7 Jun 2022 02:49:58 -0700 From: Christoph Hellwig To: "Uladzislau Rezki (Sony)" Cc: Andrew Morton , linux-mm@kvack.org, LKML , Christoph Hellwig , Matthew Wilcox , Nicholas Piggin , Oleksiy Avramchenko Subject: Re: [PATCH 2/5] mm/vmalloc: Extend __alloc_vmap_area() with extra arguments Message-ID: References: <20220607093449.3100-1-urezki@gmail.com> <20220607093449.3100-3-urezki@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607093449.3100-3-urezki@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 07, 2022 at 11:34:46AM +0200, Uladzislau Rezki (Sony) wrote: > It implies that __alloc_vmap_area() allocates only from the > global vmap space, therefore a list-head and rb-tree, which > represent a free vmap space, are not passed as parameters to > this function and are accessed directly from this function. Yes, which totally makes sense. > Extend the __alloc_vmap_area() and other dependent functions > to have a possibility to allocate from different trees making > an interface common and not specific. Which seems completely pointless. Why add argument that are always passed the same values?