public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@zeniv.linux.org.uk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Miklos Szeredi <mszeredi@redhat.com>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [git pull] d_revalidate pile (v2)
Date: Fri, 31 Jan 2025 05:56:25 +0000	[thread overview]
Message-ID: <20250131055625.GV1977892@ZenIV> (raw)
In-Reply-To: <CAHk-=wjKkZBM6w+Kc+nufJVdnBzzXwPiNdzWieN3c7dEq9bMaQ@mail.gmail.com>

On Thu, Jan 30, 2025 at 09:24:34AM -0800, Linus Torvalds wrote:
> On Wed, 29 Jan 2025 at 20:37, Al Viro <viro@zeniv.linux.org.uk> wrote:
> >
> > ->d_revalidate() series, along with ->d_iname preliminary work.
> > One trivial conflict in fs/afs/dir.c - afs_do_lookup_one() has lost
> > one argument in mainline and switched another from dentry to qstr
> > in this series.
> 
> Actually, I had a conflict in fs/fuse/dir.c, and it was less trivial.
> 
> The d_revalidate() change means that the stable name passed in might
> come from the path lookup, which means that it isn't NUL-terminated.
> 
> So the code that did
> 
>         args->in_numargs = 1;
>         args->in_args[0].size = name->len + 1;
>         args->in_args[0].value = name->name;
> 
> in fuse_lookup_init() is no longer valid for revalidate, and  instead
> you made it do the NUL termination as the next arg:
> 
>         args->in_numargs = 2;
>         args->in_args[0].size = name->len;
>         args->in_args[0].value = name->name;
>         args->in_args[1].size = 1;
>         args->in_args[1].value = "";
> 
> Fine, no problem. Except it clashes with commit 7ccd86ba3a48 ("fuse:
> make args->in_args[0] to be always the header"), which made in_args[0]
> be that empty case, and moved in_args[0] up to be arg[1].
> 
> So my resolution continues on that, and ends up with three in_args, like this:
> 
>         args->in_numargs = 3;
>         fuse_set_zero_arg0(args);
>         args->in_args[1].size = name->len;
>         args->in_args[1].value = name->name;
>         args->in_args[2].size = 1;
>         args->in_args[2].value = "";

*nod*

My apologies - that did show up in -next (obviously), with the same
resolution you went for, everyone nodded and agreed that it was obviously
the right fix.  Should've mentioned that when updating pull request
message (that wasn't an issue in the first variant, since that had
been prior to fuse merge).  Sorry about missing that...

  parent reply	other threads:[~2025-01-31  5:56 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-27  4:47 [git pull] d_revalidate pile Al Viro
2025-01-27 17:19 ` Sasha Levin
2025-01-27 17:36   ` Al Viro
2025-01-27 20:52     ` Sasha Levin
2025-01-27 21:34       ` Al Viro
2025-01-27 22:40         ` Al Viro
2025-01-27 23:08           ` Linus Torvalds
2025-01-27 23:26           ` Sasha Levin
2025-01-28  0:26             ` Al Viro
2025-01-28  0:31               ` Al Viro
2025-01-30  4:37                 ` [git pull] d_revalidate pile (v2) Al Viro
2025-01-30 17:24                   ` Linus Torvalds
2025-01-30 19:31                     ` Miklos Szeredi
2025-01-31  5:56                     ` Al Viro [this message]
2025-01-30 17:46                   ` pr-tracker-bot
2025-01-28  0:43               ` [git pull] d_revalidate pile Linus Torvalds
2025-01-28  1:21                 ` Al Viro
2025-01-28  1:27                   ` Linus Torvalds
2025-01-28  2:56                     ` Al Viro
2025-01-27 19:12   ` Linus Torvalds
2025-01-27 20:38     ` Mark Brown
2025-01-27 22:32       ` Sasha Levin
2025-01-28 12:14         ` Mark Brown
2025-01-28 12:43           ` Dan Carpenter
2025-01-28 12:33         ` Dan Carpenter
2025-01-28 19:24           ` Sasha Levin
2025-01-28  9:19       ` Guillaume Tucker

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=20250131055625.GV1977892@ZenIV \
    --to=viro@zeniv.linux.org.uk \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mszeredi@redhat.com \
    --cc=torvalds@linux-foundation.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox