RETURN(inode);
}
-struct lustre_nfs_fid {
- struct lu_fid lnf_child;
- struct lu_fid lnf_parent;
-};
-
static struct dentry *
ll_iget_for_nfs(struct super_block *sb, struct lu_fid *fid, struct lu_fid *parent)
{
struct inode *parent)
{
#endif
- int fileid_len = sizeof(struct lustre_nfs_fid) / 4;
- struct lustre_nfs_fid *nfs_fid = (void *)fh;
+ int fileid_len = sizeof(struct lustre_file_handle) / 4;
+ struct lustre_file_handle *lfh = (void *)fh;
ENTRY;
RETURN(FILEID_INVALID);
}
- nfs_fid->lnf_child = *ll_inode2fid(inode);
+ lfh->lfh_child = *ll_inode2fid(inode);
if (parent)
- nfs_fid->lnf_parent = *ll_inode2fid(parent);
+ lfh->lfh_parent = *ll_inode2fid(parent);
else
- fid_zero(&nfs_fid->lnf_parent);
+ fid_zero(&lfh->lfh_parent);
*plen = fileid_len;
RETURN(FILEID_LUSTRE);
static struct dentry *ll_fh_to_dentry(struct super_block *sb, struct fid *fid,
int fh_len, int fh_type)
{
- struct lustre_nfs_fid *nfs_fid = (struct lustre_nfs_fid *)fid;
+ struct lustre_file_handle *lfh = (struct lustre_file_handle *)fid;
if (fh_type != FILEID_LUSTRE)
RETURN(ERR_PTR(-EPROTO));
- RETURN(ll_iget_for_nfs(sb, &nfs_fid->lnf_child, &nfs_fid->lnf_parent));
+ RETURN(ll_iget_for_nfs(sb, &lfh->lfh_child, &lfh->lfh_parent));
}
static struct dentry *ll_fh_to_parent(struct super_block *sb, struct fid *fid,
int fh_len, int fh_type)
{
- struct lustre_nfs_fid *nfs_fid = (struct lustre_nfs_fid *)fid;
+ struct lustre_file_handle *lfh = (struct lustre_file_handle *)fid;
if (fh_type != FILEID_LUSTRE)
RETURN(ERR_PTR(-EPROTO));
- RETURN(ll_iget_for_nfs(sb, &nfs_fid->lnf_parent, NULL));
+ RETURN(ll_iget_for_nfs(sb, &lfh->lfh_parent, NULL));
}
int ll_dir_get_parent_fid(struct inode *dir, struct lu_fid *parent_fid)