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 6C103C433EF for ; Thu, 14 Apr 2022 20:34:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245363AbiDNUgr (ORCPT ); Thu, 14 Apr 2022 16:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346657AbiDNUgj (ORCPT ); Thu, 14 Apr 2022 16:36:39 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2086EED911; Thu, 14 Apr 2022 13:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ffxFdsGh0bqDPLkDrznla8llrXAaFkdXXDivllwyW4o=; b=0dQ9C7MpbhYSKNF4gxgJy1LX3E 7TA6YrJemtuhcydpZkRBEj3qrNIYQA3TqpmIzMF43x0+C47JxgdoknbUehrg1kFgLI/s7zF35BS8i zQ8uSolA1IwUSd7AgZNDsjO8Qi3pRUak5ErpR47J2xiWdoGWeq9rQ+UeJmB8wn6rLmh7yTNL5V9nU dB3aC1bfKFfEU1H8ybeAFEpF365RFI1wCsOEUTDFW0l2Z/6Fsr3rNInZVdVLXPcZwE0lJ57Dc86ge cy1dQQqRDd4W6IwOBklBGxUVOmwpNNJavXGAnfWarAbrFzTqJFjY5MNNSHZjSogK8xUGNh0Aq7VrM U2n8CCtw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nf6AF-007DAO-JU; Thu, 14 Apr 2022 20:34:03 +0000 Date: Thu, 14 Apr 2022 13:34:03 -0700 From: Luis Chamberlain To: Song Liu Cc: bpf@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, kernel-team@fb.com, akpm@linux-foundation.org, rick.p.edgecombe@intel.com, hch@infradead.org, imbrenda@linux.ibm.com Subject: Re: [PATCH v3 bpf RESEND 3/4] module: introduce module_alloc_huge Message-ID: References: <20220414195914.1648345-1-song@kernel.org> <20220414195914.1648345-4-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220414195914.1648345-4-song@kernel.org> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 14, 2022 at 12:59:13PM -0700, Song Liu wrote: > Introduce module_alloc_huge, which allocates huge page backed memory in > module memory space. The primary user of this memory is bpf_prog_pack > (multiple BPF programs sharing a huge page). > > Signed-off-by: Song Liu See modules-next [0], as modules.c has been chopped up as of late. So if you want this to go throug modules this will need to rebased on that tree. fortunately the amount of code in question does not seem like much. [0] https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/log/?h=modules-next Luis