Lines Matching refs:fid
99 struct p9_fid *fid, in v9fs_qid_iget_dotl() argument
133 retval = v9fs_get_acl(inode, fid); in v9fs_qid_iget_dotl()
146 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument
152 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC | P9_STATS_GEN); in v9fs_inode_from_fid_dotl()
156 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new); in v9fs_inode_from_fid_dotl()
237 struct p9_fid *fid = NULL; in v9fs_vfs_atomic_open_dotl() local
298 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_atomic_open_dotl()
299 if (IS_ERR(fid)) { in v9fs_vfs_atomic_open_dotl()
300 err = PTR_ERR(fid); in v9fs_vfs_atomic_open_dotl()
302 fid = NULL; in v9fs_vfs_atomic_open_dotl()
305 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_atomic_open_dotl()
312 v9fs_set_create_acl(inode, fid, dacl, pacl); in v9fs_vfs_atomic_open_dotl()
314 v9fs_fid_add(dentry, fid); in v9fs_vfs_atomic_open_dotl()
352 if (fid) in v9fs_vfs_atomic_open_dotl()
353 p9_client_clunk(fid); in v9fs_vfs_atomic_open_dotl()
373 struct p9_fid *fid = NULL, *dfid = NULL; in v9fs_vfs_mkdir_dotl() local
411 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_mkdir_dotl()
412 if (IS_ERR(fid)) { in v9fs_vfs_mkdir_dotl()
413 err = PTR_ERR(fid); in v9fs_vfs_mkdir_dotl()
416 fid = NULL; in v9fs_vfs_mkdir_dotl()
422 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_mkdir_dotl()
429 v9fs_fid_add(dentry, fid); in v9fs_vfs_mkdir_dotl()
430 v9fs_set_create_acl(inode, fid, dacl, pacl); in v9fs_vfs_mkdir_dotl()
432 fid = NULL; in v9fs_vfs_mkdir_dotl()
445 v9fs_set_create_acl(inode, fid, dacl, pacl); in v9fs_vfs_mkdir_dotl()
451 if (fid) in v9fs_vfs_mkdir_dotl()
452 p9_client_clunk(fid); in v9fs_vfs_mkdir_dotl()
463 struct p9_fid *fid; in v9fs_vfs_getattr_dotl() local
472 fid = v9fs_fid_lookup(dentry); in v9fs_vfs_getattr_dotl()
473 if (IS_ERR(fid)) in v9fs_vfs_getattr_dotl()
474 return PTR_ERR(fid); in v9fs_vfs_getattr_dotl()
480 st = p9_client_getattr_dotl(fid, P9_STATS_ALL); in v9fs_vfs_getattr_dotl()
543 struct p9_fid *fid = NULL; in v9fs_vfs_setattr_dotl() local
575 fid = iattr->ia_file->private_data; in v9fs_vfs_setattr_dotl()
576 WARN_ON(!fid); in v9fs_vfs_setattr_dotl()
578 if (!fid) in v9fs_vfs_setattr_dotl()
579 fid = v9fs_fid_lookup(dentry); in v9fs_vfs_setattr_dotl()
580 if (IS_ERR(fid)) in v9fs_vfs_setattr_dotl()
581 return PTR_ERR(fid); in v9fs_vfs_setattr_dotl()
587 retval = p9_client_setattr(fid, &p9attr); in v9fs_vfs_setattr_dotl()
600 retval = v9fs_acl_chmod(inode, fid); in v9fs_vfs_setattr_dotl()
689 struct p9_fid *fid = NULL; in v9fs_vfs_symlink_dotl() local
716 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_symlink_dotl()
717 if (IS_ERR(fid)) { in v9fs_vfs_symlink_dotl()
718 err = PTR_ERR(fid); in v9fs_vfs_symlink_dotl()
721 fid = NULL; in v9fs_vfs_symlink_dotl()
726 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_symlink_dotl()
733 v9fs_fid_add(dentry, fid); in v9fs_vfs_symlink_dotl()
735 fid = NULL; in v9fs_vfs_symlink_dotl()
748 if (fid) in v9fs_vfs_symlink_dotl()
749 p9_client_clunk(fid); in v9fs_vfs_symlink_dotl()
792 struct p9_fid *fid; in v9fs_vfs_link_dotl() local
793 fid = v9fs_fid_lookup(old_dentry); in v9fs_vfs_link_dotl()
794 if (IS_ERR(fid)) in v9fs_vfs_link_dotl()
795 return PTR_ERR(fid); in v9fs_vfs_link_dotl()
797 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry)); in v9fs_vfs_link_dotl()
822 struct p9_fid *fid = NULL, *dfid = NULL; in v9fs_vfs_mknod_dotl() local
856 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_mknod_dotl()
857 if (IS_ERR(fid)) { in v9fs_vfs_mknod_dotl()
858 err = PTR_ERR(fid); in v9fs_vfs_mknod_dotl()
861 fid = NULL; in v9fs_vfs_mknod_dotl()
867 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_vfs_mknod_dotl()
874 v9fs_set_create_acl(inode, fid, dacl, pacl); in v9fs_vfs_mknod_dotl()
875 v9fs_fid_add(dentry, fid); in v9fs_vfs_mknod_dotl()
877 fid = NULL; in v9fs_vfs_mknod_dotl()
889 v9fs_set_create_acl(inode, fid, dacl, pacl); in v9fs_vfs_mknod_dotl()
893 if (fid) in v9fs_vfs_mknod_dotl()
894 p9_client_clunk(fid); in v9fs_vfs_mknod_dotl()
911 struct p9_fid *fid; in v9fs_vfs_get_link_dotl() local
920 fid = v9fs_fid_lookup(dentry); in v9fs_vfs_get_link_dotl()
921 if (IS_ERR(fid)) in v9fs_vfs_get_link_dotl()
922 return ERR_CAST(fid); in v9fs_vfs_get_link_dotl()
923 retval = p9_client_readlink(fid, &target); in v9fs_vfs_get_link_dotl()
930 int v9fs_refresh_inode_dotl(struct p9_fid *fid, struct inode *inode) in v9fs_refresh_inode_dotl() argument
937 st = p9_client_getattr_dotl(fid, P9_STATS_ALL); in v9fs_refresh_inode_dotl()