vfs_symlink return NULL inode

From: David Chow (davidchow@rcn.com.hk)
Date: Sat Sep 22 2001 - 01:39:07 EST


Dear all,

I have one question from using vfs_symlink, is it usual after I called
vfs_symlink that will return a dentry with dentry->d_inode == NULL???
The link was sucessfully created but I receive a null inode pointer.
When creating a symlink it should also create an inode. But according to
the documentation about VFS from Richard, the symlink call of
inode_operations, should self call d_instantiate() this also means it
should automatically create an inode pointer. This shouldn't be done by
the caller???? Any hints? the vfs_create works fine and return with a
proper inode number, why vfs_symlink doesn't? Thanks.

regards,

David Chow
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Sep 23 2001 - 21:00:47 EST