Re: [PATCH 2/4] new helper: d_obtain_alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 9 Sep 2008, Christoph Hellwig wrote:
> On Tue, Sep 09, 2008 at 03:19:57PM +0200, Miklos Szeredi wrote:
> > > + * and will be casted to the corresponding NULL or IS_ERR dentry.
> > > + */
> > 
> > Mixing NULL with ERR_PTR() seems like a bad idea.  It should be either
> > one or the other but not both.
> 
> It's how the existing interface works.

If you mean ->fh_to_dentry() and ->fh_to_parent(), yes they do work
this way.  But a NULL return is simply equivalent to a -ESTALE return,
so why not turn !inode inot an -ESTALE in d_obtain_alias()?  That
would fix the interface and the bug in fuse.

Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux