Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1831653rbb; Tue, 27 Feb 2024 02:34:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWHsyc85YlZzsfYM0sfAuT70yd5OWdNJb4y2ZWAb/f2Hhoa53MhzfGIzJ8b/7T+dAptzj79kPN4GS2nVPPIh9pQH4gHYBhlbgfeEkI8zg== X-Google-Smtp-Source: AGHT+IF7dXuBHU1dDS8E0K9T609rEn+mAw38lLVguOH/fd9ONNbx7iDoG1Xok7kG5xshfjVVjpQa X-Received: by 2002:aa7:d746:0:b0:566:1f9b:3997 with SMTP id a6-20020aa7d746000000b005661f9b3997mr2021979eds.32.1709030090364; Tue, 27 Feb 2024 02:34:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709030090; cv=pass; d=google.com; s=arc-20160816; b=sgn8LR8uYHOevbB94GtU63AwIBRz8mv6B7OIuPTi3uOfJDlCpfnAWwpV+eLc9XlND8 hbPgxh16iNXOh2w3v8LS5aXKCqEk+L3xIPhloJfb+mnYbyuFWVokBy5TOd0GHsQQ4P8a SpGqUGtrHVYpBkB3bGHw2usHLYCdgDQ+rtUCp0fxV4gmVU0WjaevO8+CZx/KXkV1Stmj SO5HJ6x549mLhcbPoRJo5iP4LNMJhsngTVqAHNPt69k5i1ul0mgN2EVhBWgnRTTk9ryC 1qJTxgj3Vy027p7KmFDiRjNIgTAAdSLiAjoH361nIIMPiwDzvkl6ZzL3knQzP76vRWzb lCzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=3giaiEM+YhIJ9rRVyqry2Y+/0oR8IdjtBp0HUS9IG/w=; fh=HAqrIS13McWsOwFqgwWb2k0+Mzn92+IBN2rAAiN6hFY=; b=Hit5lLOOtmZJehrErwbfLheQFNPOskR+rSQu3rXtwxgLPbcXEBbIlkKV+7GREWMV4j +oqgB9VeFG2Da0Mwdtvf27fMvaTm1TLDems5ICDJgWoOFNejTrV+T+/Z7D8ZYSaMwe32 E8JD35EHGV7jP0UxGYQwLdlmxtIoTeF3E40CNPzaqvifJYhWF0ybRXwd0BxykpJjIQbm gwJRXZrtqSUXSgilNw7lpXrT0G2NiB84pmP7BsGfp6u/htaasekVlBq07UO5sZA+4jL9 nWQL8W0/hwM3FjXGZMOtvt7KS8rROMNDFe8vQY/hAG33EybPpnFROiINWUq1puWBIgyM syMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-83041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y3-20020aa7ccc3000000b005664031b691si310727edt.467.2024.02.27.02.34.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 02:34:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-83041-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 22ABD1F236B5 for ; Tue, 27 Feb 2024 10:34:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97F0A1386AF; Tue, 27 Feb 2024 10:34:36 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (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 8601B1DFF0; Tue, 27 Feb 2024 10:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709030076; cv=none; b=YDWxLdQisWVxGY0QY0U44gp0ZAx0w/KefpkmDRDeUWZFd8VLlHxZIU2KAvEye39R54OxBa/a3oWEtVR0+4DvUvwMUkJCqO4avL0gffO+98yG9f9vbJSy2ix3BfCkwDX7VdhqRIYo0Bl/G48F7vGmjG0iPZ6gdBO+vQclnxM0Rkg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709030076; c=relaxed/simple; bh=rq30rbnIvctTRtsZdN+r5jwNIkoDDZRInFyNbgXLyHo=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UcekGOgyS/NsUj86wjFlNa3HrVh5szNXCHX4rCJC+hz1XwdyyU1NzXvb0KGLCQC18TYfZG0gYbOPkcUk3KR3o1QuN1tLl9wl6GsqOCss0w097wJ7Hy8XffFN7+LNPVYpAZzVheAQ3K6TOUnvWpEQMjbKeqhjVtBZqshsb0pherA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TkYdS29fTz6J9Zy; Tue, 27 Feb 2024 18:29:48 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id F26F614058E; Tue, 27 Feb 2024 18:34:24 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 27 Feb 2024 10:34:24 +0000 Date: Tue, 27 Feb 2024 10:34:23 +0000 From: Jonathan Cameron To: John Groves CC: John Groves , Jonathan Corbet , "Dan Williams" , Vishal Verma , Dave Jiang , "Alexander Viro" , Christian Brauner , "Jan Kara" , Matthew Wilcox , , , , , , , Dave Chinner , Christoph Hellwig , , Subject: Re: [RFC PATCH 09/20] famfs: Add super_operations Message-ID: <20240227103423.0000510e@Huawei.com> In-Reply-To: References: <537f836056c141ae093c42b9623d20de919083b1.1708709155.git.john@groves.net> <20240226125136.00002e64@Huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500004.china.huawei.com (7.191.163.9) To lhrpeml500005.china.huawei.com (7.191.163.240) On Mon, 26 Feb 2024 15:47:53 -0600 John Groves wrote: > On 24/02/26 12:51PM, Jonathan Cameron wrote: > > On Fri, 23 Feb 2024 11:41:53 -0600 > > John Groves wrote: > > > > > Introduce the famfs superblock operations > > > > > > Signed-off-by: John Groves > > > --- > > > fs/famfs/famfs_inode.c | 72 ++++++++++++++++++++++++++++++++++++++++++ > > > 1 file changed, 72 insertions(+) > > > create mode 100644 fs/famfs/famfs_inode.c > > > > > > diff --git a/fs/famfs/famfs_inode.c b/fs/famfs/famfs_inode.c > > > new file mode 100644 > > > index 000000000000..3329aff000d1 > > > --- /dev/null > > > +++ b/fs/famfs/famfs_inode.c > > > @@ -0,0 +1,72 @@ > > > +// SPDX-License-Identifier: GPL-2.0 > > > +/* > > > + * famfs - dax file system for shared fabric-attached memory > > > + * > > > + * Copyright 2023-2024 Micron Technology, inc > > > + * > > > + * This file system, originally based on ramfs the dax support from xfs, > > > + * is intended to allow multiple host systems to mount a common file system > > > + * view of dax files that map to shared memory. > > > + */ > > > + > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > > That's a lot of header for such a small patch.. I'm going to guess > > they aren't all used - bring them in as you need them - I hope > > you never need some of these! > > I didn't phase in headers in this series. Based on these recommendations, > the next version of this series is gonna have to be 100% constructed from > scratch, but okay. My head hurts just thinking about it. I need a nap... > > I've been rebasing for 3 weeks to get this series out, and it occurs to > me that maybe there are tools I'm not aware of that make it eaiser? I'm > just typing "rebase -i..." 200 times a day. Is there a less soul-crushing way? Hmm. There are things that make it easier to pick and chose parts of a big diff for different patches. Some combination of git reset HEAD~1 and one of the 'graphical' tools like tig that let you pick lines. That lets you quickly break up a patch where you want to move things, then you can reorder the patches to put them next to where you want to move changes to and rely on git rebase -i with f or s to squash them. Figuring out optimum path to the eventual break up you want is a skill though. When doing this sort of mangling I tend to get it wrong and shout at my computer a few times a day ;) Then git rebase --abort and try again. End result is that you end up with coherent series and it looks like you wrote perfect code in nice steps from the start! Jonathan