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 X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D92D0C56201 for ; Tue, 24 Nov 2020 10:17:08 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 366CB20782 for ; Tue, 24 Nov 2020 10:17:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="gdU7ME06" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 366CB20782 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 709DB6B00A3; Tue, 24 Nov 2020 05:17:07 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6BAD26B00A5; Tue, 24 Nov 2020 05:17:07 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A9606B00A6; Tue, 24 Nov 2020 05:17:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0240.hostedemail.com [216.40.44.240]) by kanga.kvack.org (Postfix) with ESMTP id 45EA06B00A3 for ; Tue, 24 Nov 2020 05:17:07 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0EF6E8249980 for ; Tue, 24 Nov 2020 10:17:07 +0000 (UTC) X-FDA: 77518908894.24.cent83_610bf732736d Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id EDEF91A4A5 for ; Tue, 24 Nov 2020 10:17:06 +0000 (UTC) X-HE-Tag: cent83_610bf732736d X-Filterd-Recvd-Size: 3094 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Tue, 24 Nov 2020 10:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=/3aXByI6bMVnI2xSKBiJLrwoPXo5PJB6CawKv/IS7m4=; b=gdU7ME06fB7+n99iu6TMoZyUUc sPWz41w/lixVtkjHShfW4nAkMt3M6sIfTW42NCTlX4WIsUuOG1F0mImYZ2krw93cGRS6I7DEe5HII OEHyNkFq6BuV51iduvF160XWFREuEoFgNYbx4IoO/a+Ht4UG/KKYbZgx4r8n3+HpyqXNdg8CgjzvQ jxIf8JNzDHBDJ5Y+jYIOoCCGoUhwbjuHSpvTGQndYczBsdOgvRrWtUTnd74Gpc+EgdRF0mb5SK8z6 QmHLq9r/UVn+t2sT59R6omg7hX4NamRC2LtrrU5qQH5nV0/t8lbGIJH1osf6QfhFcaSyXOdWb09VX vMbxqhRw==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1khVNY-0002hO-VT; Tue, 24 Nov 2020 10:16:57 +0000 Date: Tue, 24 Nov 2020 10:16:56 +0000 From: Christoph Hellwig To: "Edgecombe, Rick P" Cc: "luto@kernel.org" , "linux-kernel@vger.kernel.org" , "daniel@iogearbox.net" , "peterz@infradead.org" , "jeyu@kernel.org" , "bpf@vger.kernel.org" , "rppt@kernel.org" , "ast@kernel.org" , "linux-mm@kvack.org" , "dave.hansen@linux.intel.com" , "Weiny, Ira" , "x86@kernel.org" , "akpm@linux-foundation.org" , "Reshetova, Elena" , "Williams, Dan J" Subject: Re: [PATCH RFC 01/10] vmalloc: Add basic perm alloc implementation Message-ID: <20201124101656.GA9682@infradead.org> References: <20201120202426.18009-1-rick.p.edgecombe@intel.com> <20201120202426.18009-2-rick.p.edgecombe@intel.com> <90d528be131a77a167df757b83118a275d9cb35f.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90d528be131a77a167df757b83118a275d9cb35f.camel@intel.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Nov 23, 2020 at 12:01:35AM +0000, Edgecombe, Rick P wrote: > Another option could be putting the new metadata in vm_struct and just > return that, like get_vm_area(). Then we don't need to invent a new > struct. But then normal vmalloc()'s would have a bit of wasted memory > since they don't need this metadata. That would seem most natural to me. We'll need to figure out how we can do that without bloating vm_struct too much. One option would be a bigger structure that embedds vm_struct and can be retreived using container_of().