Re: get_inode callback of generic_fh_to_{dentry|parent}

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

 



On Mon, Aug 23, 2010 at 03:32:04PM +0200, Marco Stornelli wrote:
> Hi,
> 
> I'm the maintainer of pramfs. I'm currently working in the export
> operation for my fs and I've got a question about the callback in the
> subject. Is it right that this function return an error for a not
> allocated inode? I see a comment for example in the ext2 code for the
> callback like this:
> 
>   /* iget isn't really right if the inode is currently unallocated!! */
> 
> So I think it's cleaner to use ilookup() instead of iget(). Comments?

ilookup only returns an inode if it's already in the inode cache.
the get_inode callback needs to return an inode if it's allocated, even
if it's not in the inode cache.

--
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