From patchwork Mon Jan 29 14:34:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 13535764 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 201C9C47DB3 for ; Mon, 29 Jan 2024 14:35:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DAB426B00A5; Mon, 29 Jan 2024 09:35:31 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D32E16B00A7; Mon, 29 Jan 2024 09:35:31 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BAD916B00A8; Mon, 29 Jan 2024 09:35:31 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id A1E506B00A5 for ; Mon, 29 Jan 2024 09:35:31 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7AAA716030C for ; Mon, 29 Jan 2024 14:35:31 +0000 (UTC) X-FDA: 81732596862.10.5666A1B Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf10.hostedemail.com (Postfix) with ESMTP id EA83BC0016 for ; Mon, 29 Jan 2024 14:35:29 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=OS98c4u6; dmarc=none; spf=none (imf10.hostedemail.com: domain of BATV+95c35c30fd22f84c25d9+7463+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+95c35c30fd22f84c25d9+7463+infradead.org+hch@bombadil.srs.infradead.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706538930; a=rsa-sha256; cv=none; b=aJeCgPuQgz8+O+AGPTfFpRH5NQEaRnDlW/3yAkzIdipyukzEdcGv77aRHaPSAL0F1AL3s1 5UyOTMzXM7QbZD/bDPQkFU5Vdqls9U35OvJZCrw1esYCWomJZG6ENccKhAGxFUeEdGf/2d 9vdr/OyNawFnSDzgHBA39tCGppF+BTU= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=infradead.org header.s=bombadil.20210309 header.b=OS98c4u6; dmarc=none; spf=none (imf10.hostedemail.com: domain of BATV+95c35c30fd22f84c25d9+7463+infradead.org+hch@bombadil.srs.infradead.org has no SPF policy when checking 198.137.202.133) smtp.mailfrom=BATV+95c35c30fd22f84c25d9+7463+infradead.org+hch@bombadil.srs.infradead.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706538930; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Mb0aKytFq1BGb2HbWrZKS2O+ruK+bI9H1a6C537e2bg=; b=CRWlRDodT3pFG0SVKxBrmx6w9t9YvaphCRYa/4qT7stGD7r1yQjUppFZ5vJJZ+EtrNIrwX qkied4XbojsfC9oVHQXd8WXiUkKnsZGyDoabLcd5NDtHkqukGH97Z3Wnyjv/XGif7iPrH8 9TH1SDvyK57VKBwWgpPKNzocTG/YSbo= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=Mb0aKytFq1BGb2HbWrZKS2O+ruK+bI9H1a6C537e2bg=; b=OS98c4u60FTr62PDOGi7enyjZK xFXKPLlrimdvB2Iu4fpeltNoMQ2ZC9g1x7jRTBgyNUqupRnsfGawClI8K//Q7U7ki+gOEzcMmXDZx KmLXLMElm44yX2DCrBeGpGjgabWiVCJJ34xQRVUsk6fbAz/7Lw+9NyUjPnXjSW1Dd02/E9HEl9Zr8 MVC31vAdt7xB8N1LsrPdhlQ4fHaYflH5XPOKBVmhmtS//lHZcq+dEyH71ytQQHzBWZ95vRGQRq7Sj 5pgCMxOInG3gOFVxzhTJ1rjkjWmRPxKvuOLpEFut7zP5598KykeJFd/DiWTCGAsBAQ8FVHn+4zvI0 txVJ7Z7A==; Received: from [2001:4bb8:182:6550:c70:4a89:bc61:3] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUSjO-0000000D6Bk-3Mce; Mon, 29 Jan 2024 14:35:27 +0000 From: Christoph Hellwig To: Chandan Babu R , "Darrick J. Wong" , Hugh Dickins , Andrew Morton Cc: linux-xfs@vger.kernel.org, linux-mm@kvack.org, Matthew Wilcox Subject: [PATCH 06/20] shmem: export shmem_kernel_file_setup Date: Mon, 29 Jan 2024 15:34:48 +0100 Message-Id: <20240129143502.189370-7-hch@lst.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240129143502.189370-1-hch@lst.de> References: <20240129143502.189370-1-hch@lst.de> MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: EA83BC0016 X-Stat-Signature: k84jfzaqem8pnhdbduigjwtq4wwka3ma X-HE-Tag: 1706538929-492221 X-HE-Meta: U2FsdGVkX18Ze2Gr7s0d4UGvTnYiXFRqMpnwTD792eYlq7hOmr1LYFbAufzMMA31/d/WInqwyuw/5P79AwZCy2L6vxJLUC+eNyOG00p5BawP29mc5KbrFFf5kyiUJb7+bpC5Igt2OCJHK/NQ23WXLgSyiHZwf21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ter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: XFS wants to use this for it's internal in-memory data structures and currently duplicates the functionality. Export shmem_kernel_file_setup to allow XFS to switch over to using the proper kernel API. Signed-off-by: Christoph Hellwig Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: Darrick J. Wong --- mm/shmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/shmem.c b/mm/shmem.c index dae684cd3c99fb..e89fb5eccb0c0a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4856,6 +4856,7 @@ struct file *shmem_kernel_file_setup(const char *name, loff_t size, unsigned lon { return __shmem_file_setup(shm_mnt, name, size, flags, S_PRIVATE); } +EXPORT_SYMBOL_GPL(shmem_kernel_file_setup); /** * shmem_file_setup - get an unlinked file living in tmpfs