On Tue, 27 Oct 2026, Jimmy Zuber wrote:
> On Thu, 22 Oct 2026, NeilBrown wrote:
> > Almost all other filesystems use d_tmpfile() for tmp-files (which calls
> > d_instantiate). Is there a reason that fuse cannot use d_tmpfile()?
> 
> fuse_tmpfile() follows a slightly different pattern than d_tmpfile(). A
> fuse tmpfile shows up in /proc as "<dir>// (deleted)", whereas d_tmpfile()
> renames the dentry so that it shows up as "<dir>/#<ino> (deleted)". Also,
> fuse gets nlink for the tmpfile from the server, while d_tmpfile()
> decrements it. Reusing d_tmpfile() seems like it would be a behavior
> change, which I'd like to avoid.
> 

The /proc different seems cosmetic and probably of no consequence.
The nlink issue might be significant - I cannot say.
It might be nice to include a comment where d_instantiate() is used,
explaining why d_tmpfile() was avoided(?).

Thank for the explanation,
NeilBrown

Reply via email to