All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Brauner <brauner@kernel.org>
To: Amir Goldstein <amir73il@gmail.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>,
	linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org
Subject: Re: [RFC][PATCH 0/4] Intruduce stacking filesystem vfs helpers
Date: Sat, 23 Dec 2023 14:11:24 +0100	[thread overview]
Message-ID: <20231223-kronleuchter-kehren-f91545a17968@brauner> (raw)
In-Reply-To: <CAOQ4uxiDEHattVW2NecEwf66GNrUnkAief9XSTWbegcgyzuSbA@mail.gmail.com>

On Sat, Dec 23, 2023 at 10:07:11AM +0200, Amir Goldstein wrote:
> On Fri, Dec 22, 2023 at 2:44 PM Christian Brauner <brauner@kernel.org> wrote:
> >
> > > If I do that, would you preffer to take these patches via the vfs tree
> >
> > I would prefer if you:
> >
> > * Add the vfs infrastructure stuff on top of what's in vfs.file.
> >   There's also currently a conflict between this series and what's in there.
> 
> I did not notice any actual conflicts with vfs.file.
> They do change the same files, but nothing that git can't handle.
> Specifically, FMODE_BACKING was excepted from the fput()
> changes, so also no logic changes that I noticed.

Huh, let me retry while writing this mail:

  ✓ [PATCH RFC 1/4] fs: prepare for stackable filesystems backing file helpers
    + Link: https://lore.kernel.org/r/20231221095410.801061-2-amir73il@gmail.com
    + Signed-off-by: Christian Brauner <brauner@kernel.org>
  ✓ [PATCH RFC 2/4] fs: factor out backing_file_{read,write}_iter() helpers
    + Link: https://lore.kernel.org/r/20231221095410.801061-3-amir73il@gmail.com
    + Signed-off-by: Christian Brauner <brauner@kernel.org>
  ✓ [PATCH RFC 3/4] fs: factor out backing_file_splice_{read,write}() helpers
    + Link: https://lore.kernel.org/r/20231221095410.801061-4-amir73il@gmail.com
    + Signed-off-by: Christian Brauner <brauner@kernel.org>
  ✓ [PATCH RFC 4/4] fs: factor out backing_file_mmap() helper
    + Link: https://lore.kernel.org/r/20231221095410.801061-5-amir73il@gmail.com
    + Signed-off-by: Christian Brauner <brauner@kernel.org>
  ---
  ✓ Signed: DKIM/gmail.com
---
Total patches: 4
---
Applying: fs: prepare for stackable filesystems backing file helpers
Applying: fs: factor out backing_file_{read,write}_iter() helpers
Patch failed at 0002 fs: factor out backing_file_{read,write}_iter() helpers
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
error: sha1 information is lacking or useless (fs/overlayfs/file.c).
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch

Ok, I see that I didn't include your branch so git got confused by
missing overlayfs changes that you have in your tree and thus failed to
apply here.

> 
> The only conflict I know of is with the vfs.rw branch,
> the move of *_start_write() into *__iter_write(), therefore,
> these patches are already based on top of vfs.rw.

Aha, there we go.

> 
> I've just pushed branch backing_file rebased over both
> vfs.rw and vfs.file to:
> https://github.com/amir73il/linux/commits/backing_file
> 
> Started to run overlayfs tests to see if vfs.file has unforeseen impact
> that I missed in review.
> 
> > * Pull vfs.file into overlayfs.
> > * Port overlayfs to the new infrastructure.
> >
> 
> Wait, do you mean add the backing_file_*() helpers
> and only then convert overlayfs to use them?
> 
> I think that would be harder to review (also in retrospect)
> so the "factor out ... helper" patches that move code from
> overlayfs to fs/backing_file.c are easier to follow.

It depends. Here I think it's a bit similar to David's netfs library
stuff where a bunch of infra is added. Then the conversion is on top of
that. However, I have no mandatory rule here.

> 
> Or did you mean something else?
> 
> > io_uring already depends on vfs.file as well.
> >
> > If this is straightforward I can include it in v6.8. The VFS prs will go
> > out the week before January 7.
> 
> Well, unless I misunderstood you, that was straightforward.
> The only complexity is the order and dependency among the PRs.
> 
> If I am not mistaken, backing_file could be applied directly on top of
> vfs.rw and sent right after it, or along with it (via your tree)?

Along with it.

      reply	other threads:[~2023-12-23 13:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-21  9:54 [RFC][PATCH 0/4] Intruduce stacking filesystem vfs helpers Amir Goldstein
2023-12-21  9:54 ` [RFC][PATCH 1/4] fs: prepare for stackable filesystems backing file helpers Amir Goldstein
2023-12-21  9:54 ` [RFC][PATCH 2/4] fs: factor out backing_file_{read,write}_iter() helpers Amir Goldstein
2023-12-21  9:54 ` [RFC][PATCH 3/4] fs: factor out backing_file_splice_{read,write}() helpers Amir Goldstein
2023-12-21  9:54 ` [RFC][PATCH 4/4] fs: factor out backing_file_mmap() helper Amir Goldstein
2023-12-22 12:54   ` Christian Brauner
2023-12-23  6:54     ` Amir Goldstein
2023-12-23  6:56       ` Amir Goldstein
2023-12-23 13:04         ` Christian Brauner
2023-12-23 14:28           ` Amir Goldstein
2023-12-22 12:44 ` [RFC][PATCH 0/4] Intruduce stacking filesystem vfs helpers Christian Brauner
2023-12-23  8:07   ` Amir Goldstein
2023-12-23 13:11     ` Christian Brauner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231223-kronleuchter-kehren-f91545a17968@brauner \
    --to=brauner@kernel.org \
    --cc=amir73il@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.