Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2404371rbb; Wed, 28 Feb 2024 00:07:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUINoKxAsFvkMC9ArhEw3L4K1qyfTOYBG+ldjBWP3nosP9cDDw0/ubXxTPr15J1l3tgtFClZBPg9IFclp46jLyUuF1RKw00f0doCFrnaw== X-Google-Smtp-Source: AGHT+IHtu8HoS4Qd/lmvQBoVRu1ZlPSplWmRgY9SctbPriIjiTRQqTF4JiqdXxDO0twUVBx20VMo X-Received: by 2002:a17:906:508:b0:a44:f89:a04e with SMTP id j8-20020a170906050800b00a440f89a04emr270321eja.35.1709107620853; Wed, 28 Feb 2024 00:07:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709107620; cv=pass; d=google.com; s=arc-20160816; b=0s0w9JZqA/fsS/IxZaZ9UNExJWS4Rbhd75LvbIjor8/nbbCXhrBclKBK+E31pb3xsN MxRRx2xywGKcblkAPkLJBjevwlEfC2Ze9/1hTWL3NAVTKJnFgejvjbn7WkQopq8IHE3y CcuN8SGDz1HE8vY4OyGPEMhQ9bbz4uw2C/Px9uXavx4bqjtHpUONf8XY2+Hvbbq2LCnz isXqRUL8RTOm+u4Pcb6l23eHxS87z383BT0KOm1B5wZfATZmMSVtOSdsofX7uAXgotBv VdRvAiW7lxwGTEqtCh79y4f48+DrkXQoJr25hxvSiQc/64iUzez9zb0DqmFPLr2+YYb3 39Aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=cms8Ef3fgwsJAymMCfxvOAd2pB9FZVDvl21gvg199Fk=; fh=tDXAplK7F+yKO3RbuHmMsxG1giGP91xxQi5hK8icnig=; b=If3kN/UWJi3yfQ/C5gFzkW0kxsoBNQyjR+uV5T0fYagYT27tr1YlOhPsn7GMzr3EUq +C+nlPuuB+kc3Qxl4ghUOov8FdonQzG/ddiDcn+oQg/lT28QgPBoHo9WMFhtZvP1VmPB L+WPUdHYCeehHCyhEnX+twA+MNc5PV0Q2+5h1TBmNrEeEOYZ1fLRL9WsU5w+d3mbcucc Ae4XEXS+YVdK11ZyfidkWd8BbGYVW3qr3aSaPsYC/li/Ol8YuZASLvFFroG6fYOZ/YV0 4piGCtLug0kS5HPeEY/icR+Is4+vhtoduey1F+m7Upd+tZsv4c2TN3KF+1aTRK6D1foo PUUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1prOQI2c; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-84386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84386-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v11-20020a170906338b00b00a440743343asi250048eja.912.2024.02.28.00.07.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 00:07:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1prOQI2c; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-84386-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84386-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CC1AE1F2DEEB for ; Wed, 28 Feb 2024 01:53:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B497210ED; Wed, 28 Feb 2024 01:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="1prOQI2c" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99ED3210E1; Wed, 28 Feb 2024 01:49:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709084959; cv=none; b=QwWA593aLPrHMuXCQ4Ez2Pn3HznQoCqMqqFYf9gOUuHv+nlvfjLhaoSpmRRXfAKThuqwhTHxhkW+X51Nl5TRIDnhfmN+PBPhOZa/XgfpBh9Ajo1kN8eB3Icdb9NhtiuZYd0d+NQoiDtQsVLfNj2W3y8u+4MeRm1tkOOiuOm2VN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709084959; c=relaxed/simple; bh=gjgYbrtNhxKWyS5CTNxCrQYKJsq5J+1ei+mqMlM4VEc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eBhcrTMNsSfR8jQWwe4rLDseoZRCmJQyhwDI5KM83iaIlCC9ntkDGWs8D6pUEfcve7IBxEAZHpVykxJFM2V6FQsN70kyYFJ2mddbSGVHPZ78hh53GG9JMqQXtyS6PZvZfycX83JB0VGRfb07F6Ikjr27NRxej1N2thgw0SubZKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=1prOQI2c; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=cms8Ef3fgwsJAymMCfxvOAd2pB9FZVDvl21gvg199Fk=; b=1prOQI2cFuXNlXlNKW6h0DpP3M fdaANi4aUnHS9IxP3OGBd4OaSFmaEoJmDGt0TG4yCxM/CzShaI9mZ2FLN48JHKdvdT2ODstAMNnm3 U1XtaSIlZpGp4iOLnntuBqUzUt396h7bIgcxPsMjtn4WPgNfPzU6fvH8mIMYenDldNsnckCRUpMGY Y0vEL5B2V9QWgvq2oW1h+SS9RB08R0MWhPthvhIstet47AxtwSEoABFDKNGSNfMAIGq9g/0/WHnJ5 lG6ezOo5Ggp/Yg50/fMzQf7LFwv4F0bYpqFTkT8V84q6HEibs97gC2fErgrLNZ1PXfm8d31HV8FTF 7tjzXGXQ==; Received: from [50.53.50.0] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1rf94B-00000007bsH-17RP; Wed, 28 Feb 2024 01:49:03 +0000 Message-ID: <8bd01ff0-235f-4aa8-883d-4b71b505b74d@infradead.org> Date: Tue, 27 Feb 2024 17:49:02 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 11/20] famfs: Add fs_context_operations Content-Language: en-US To: John Groves , Christian Brauner Cc: John Groves , Jonathan Corbet , Dan Williams , Vishal Verma , Dave Jiang , Alexander Viro , Jan Kara , Matthew Wilcox , linux-cxl@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, john@jagalactic.com, Dave Chinner , Christoph Hellwig , dave.hansen@linux.intel.com, gregory.price@memverge.com References: <20240227-mammut-tastatur-d791ca2f556b@brauner> <6jrtl2vc4dmi5b6db6tte2ckiyjmiwezbtlwrtmm464v65wkhj@znzv2mwjfgsk> From: Randy Dunlap In-Reply-To: <6jrtl2vc4dmi5b6db6tte2ckiyjmiwezbtlwrtmm464v65wkhj@znzv2mwjfgsk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/27/24 16:59, John Groves wrote: > On 24/02/27 02:41PM, Christian Brauner wrote: >> On Fri, Feb 23, 2024 at 11:41:55AM -0600, John Groves wrote: >>> This commit introduces the famfs fs_context_operations and >>> famfs_get_inode() which is used by the context operations. >>> >>> Signed-off-by: John Groves >>> --- >>> fs/famfs/famfs_inode.c | 178 +++++++++++++++++++++++++++++++++++++++++ >>> 1 file changed, 178 insertions(+) >>> >>> diff --git a/fs/famfs/famfs_inode.c b/fs/famfs/famfs_inode.c >>> index 82c861998093..f98f82962d7b 100644 >>> --- a/fs/famfs/famfs_inode.c >>> +++ b/fs/famfs/famfs_inode.c > > > > > I wasn't aware of the new fsconfig interface. Is there documentation or a > file sytsem that already uses it that I should refer to? I didn't find an > obvious candidate, but it might be me. If it should be obvious from the > example above, tell me and I'll try harder. > My famfs code above was copied from ramfs. If you point me to > documentation I might send you a ramfs fsconfig patch too :D. All that I found was the commit to add fsconfig to the kernel tree: commit ecdab150fddb Author: David Howells Date: Thu Nov 1 23:36:09 2018 +0000 vfs: syscall: Add fsconfig() for configuring and managing a context and the lore archive for its discussion: https://lore.kernel.org/all/153313723557.13253.9055982745313603422.stgit@warthog.procyon.org.uk/ plus David's userspace man page addition for it: https://lore.kernel.org/linux-fsdevel/159680897140.29015.15318866561972877762.stgit@warthog.procyon.org.uk/ -- #Randy