Home
last modified time | relevance | path

Searched refs:fid (Results 1 – 25 of 85) sorted by relevance

1234

/fs/9p/
Dfid.c44 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument
46 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid()
49 void v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) in v9fs_fid_add() argument
52 __add_fid(dentry, fid); in v9fs_fid_add()
66 struct p9_fid *fid, *ret; in v9fs_fid_find() local
76 hlist_for_each_entry(fid, h, dlist) { in v9fs_fid_find()
77 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find()
78 ret = fid; in v9fs_fid_find()
123 struct p9_fid *fid, *old_fid = NULL; in v9fs_fid_lookup_with_uid() local
127 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup_with_uid()
[all …]
Dxattr.c24 ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name, in v9fs_fid_xattr_get() argument
32 attr_fid = p9_client_xattrwalk(fid, name, &attr_size); in v9fs_fid_xattr_get()
88 struct p9_fid *fid; in v9fs_xattr_get() local
92 fid = v9fs_fid_lookup(dentry); in v9fs_xattr_get()
93 if (IS_ERR(fid)) in v9fs_xattr_get()
94 return PTR_ERR(fid); in v9fs_xattr_get()
96 return v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get()
114 struct p9_fid *fid = v9fs_fid_lookup(dentry); in v9fs_xattr_set() local
115 if (IS_ERR(fid)) in v9fs_xattr_set()
116 return PTR_ERR(fid); in v9fs_xattr_set()
[all …]
Dvfs_inode_dotl.c111 struct p9_fid *fid, in v9fs_qid_iget_dotl() argument
147 retval = v9fs_get_acl(inode, fid); in v9fs_qid_iget_dotl()
161 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid_dotl() argument
167 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC | P9_STATS_GEN); in v9fs_inode_from_fid_dotl()
171 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st, new); in v9fs_inode_from_fid_dotl()
253 struct p9_fid *fid = NULL; in v9fs_vfs_atomic_open_dotl() local
320 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_vfs_atomic_open_dotl()
321 if (IS_ERR(fid)) { in v9fs_vfs_atomic_open_dotl()
322 err = PTR_ERR(fid); in v9fs_vfs_atomic_open_dotl()
324 fid = NULL; in v9fs_vfs_atomic_open_dotl()
[all …]
Dvfs_dir.c97 struct p9_fid *fid = filp->private_data; in v9fs_alloc_rdir_buf() local
98 if (!fid->rdir) in v9fs_alloc_rdir_buf()
99 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf()
100 return fid->rdir; in v9fs_alloc_rdir_buf()
116 struct p9_fid *fid; in v9fs_dir_readdir() local
122 fid = filp->private_data; in v9fs_dir_readdir()
124 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir()
142 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir()
177 struct p9_fid *fid; in v9fs_dir_readdir_dotl() local
184 fid = filp->private_data; in v9fs_dir_readdir_dotl()
[all …]
Dvfs_file.c61 struct p9_fid *fid; in v9fs_file_open() local
72 fid = file->private_data; in v9fs_file_open()
73 if (!fid) { in v9fs_file_open()
74 fid = v9fs_fid_clone(file->f_path.dentry); in v9fs_file_open()
75 if (IS_ERR(fid)) in v9fs_file_open()
76 return PTR_ERR(fid); in v9fs_file_open()
78 err = p9_client_open(fid, omode); in v9fs_file_open()
80 p9_client_clunk(fid); in v9fs_file_open()
88 file->private_data = fid; in v9fs_file_open()
99 fid = v9fs_writeback_fid(file->f_path.dentry); in v9fs_file_open()
[all …]
Dvfs_inode.c547 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument
553 st = p9_client_stat(fid); in v9fs_inode_from_fid()
645 struct p9_fid *dfid, *ofid, *fid; in v9fs_create() local
652 fid = NULL; in v9fs_create()
677 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_create()
678 if (IS_ERR(fid)) { in v9fs_create()
679 err = PTR_ERR(fid); in v9fs_create()
682 fid = NULL; in v9fs_create()
688 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create()
695 v9fs_fid_add(dentry, fid); in v9fs_create()
[all …]
Dvfs_super.c121 struct p9_fid *fid; in v9fs_mount() local
130 fid = v9fs_session_init(v9ses, dev_name, data); in v9fs_mount()
131 if (IS_ERR(fid)) { in v9fs_mount()
132 retval = PTR_ERR(fid); in v9fs_mount()
166 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC); in v9fs_mount()
176 st = p9_client_stat(fid); in v9fs_mount()
188 retval = v9fs_get_acl(inode, fid); in v9fs_mount()
191 v9fs_fid_add(root, fid); in v9fs_mount()
197 p9_client_clunk(fid); in v9fs_mount()
210 p9_client_clunk(fid); in v9fs_mount()
[all …]
Dv9fs.h155 struct p9_fid *fid,
161 struct p9_fid *fid,
200 v9fs_get_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_get_inode_from_fid() argument
204 return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 0); in v9fs_get_inode_from_fid()
206 return v9fs_inode_from_fid(v9ses, fid, sb, 0); in v9fs_get_inode_from_fid()
218 v9fs_get_new_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_get_new_inode_from_fid() argument
222 return v9fs_inode_from_fid_dotl(v9ses, fid, sb, 1); in v9fs_get_new_inode_from_fid()
224 return v9fs_inode_from_fid(v9ses, fid, sb, 1); in v9fs_get_new_inode_from_fid()
Dacl.c28 static struct posix_acl *__v9fs_get_acl(struct p9_fid *fid, char *name) in __v9fs_get_acl() argument
34 size = v9fs_fid_xattr_get(fid, name, NULL, 0); in __v9fs_get_acl()
39 size = v9fs_fid_xattr_get(fid, name, value, size); in __v9fs_get_acl()
56 int v9fs_get_acl(struct inode *inode, struct p9_fid *fid) in v9fs_get_acl() argument
70 dacl = __v9fs_get_acl(fid, POSIX_ACL_XATTR_DEFAULT); in v9fs_get_acl()
71 pacl = __v9fs_get_acl(fid, POSIX_ACL_XATTR_ACCESS); in v9fs_get_acl()
117 static int v9fs_set_acl(struct p9_fid *fid, int type, struct posix_acl *acl) in v9fs_set_acl() argument
144 retval = v9fs_fid_xattr_set(fid, name, buffer, size, 0); in v9fs_set_acl()
150 int v9fs_acl_chmod(struct inode *inode, struct p9_fid *fid) in v9fs_acl_chmod() argument
163 retval = v9fs_set_acl(fid, ACL_TYPE_ACCESS, acl); in v9fs_acl_chmod()
[all …]
Dvfs_dentry.c96 struct p9_fid *fid; in v9fs_lookup_revalidate() local
111 fid = v9fs_fid_lookup(dentry); in v9fs_lookup_revalidate()
112 if (IS_ERR(fid)) in v9fs_lookup_revalidate()
113 return PTR_ERR(fid); in v9fs_lookup_revalidate()
117 retval = v9fs_refresh_inode_dotl(fid, inode); in v9fs_lookup_revalidate()
119 retval = v9fs_refresh_inode(fid, inode); in v9fs_lookup_revalidate()
/fs/afs/
Dinode.c27 struct afs_fid fid; member
78 inode->i_generation = vnode->fid.unique; in afs_inode_map_status()
103 return inode->i_ino == data->fid.vnode && in afs_iget5_test()
104 inode->i_generation == data->fid.unique; in afs_iget5_test()
125 inode->i_ino = data->fid.vnode; in afs_iget5_set()
126 inode->i_generation = data->fid.unique; in afs_iget5_set()
127 vnode->fid = data->fid; in afs_iget5_set()
147 AFS_FS_I(dir)->fid.vid, AFS_FS_I(dir)->fid.vnode, in afs_iget_autocell()
153 data.fid.vid = as->volume->vid; in afs_iget_autocell()
154 data.fid.unique = 0; in afs_iget_autocell()
[all …]
Dvnode.c86 if (vnode->fid.vid < xvnode->fid.vid) in afs_install_vnode()
88 else if (vnode->fid.vid > xvnode->fid.vid) in afs_install_vnode()
90 else if (vnode->fid.vnode < xvnode->fid.vnode) in afs_install_vnode()
92 else if (vnode->fid.vnode > xvnode->fid.vnode) in afs_install_vnode()
94 else if (vnode->fid.unique < xvnode->fid.unique) in afs_install_vnode()
96 else if (vnode->fid.unique > xvnode->fid.unique) in afs_install_vnode()
237 _enter("{%x:%u},%d", vnode->fid.vid, vnode->fid.vnode, ret); in afs_vnode_status_update_failed()
275 vnode->fid.vid, vnode->fid.vnode, vnode->fid.unique); in afs_vnode_fetch_status()
403 vnode->fid.vid, in afs_vnode_fetch_data()
404 vnode->fid.vnode, in afs_vnode_fetch_data()
[all …]
Ddir.c122 struct afs_fid fid; member
432 cookie->fid.vnode = ino; in afs_lookup_filldir()
433 cookie->fid.unique = dtype; in afs_lookup_filldir()
445 struct afs_fid *fid, struct key *key) in afs_do_lookup() argument
459 cookie.fid.vid = as->volume->vid; in afs_do_lookup()
476 *fid = cookie.fid; in afs_do_lookup()
477 _leave(" = 0 { vn=%u u=%u }", fid->vnode, fid->unique); in afs_do_lookup()
487 struct afs_fid *fid) in afs_try_auto_mntpt() argument
494 ret, dentry, devname, vnode->fid.vid, vnode->fid.vnode, key); in afs_try_auto_mntpt()
506 *fid = AFS_FS_I(inode)->fid; in afs_try_auto_mntpt()
[all …]
Dcache.c257 vnode->fid.vnode, vnode->fid.unique, vnode->status.data_version, in afs_vnode_cache_get_key()
260 klen = sizeof(vnode->fid.vnode); in afs_vnode_cache_get_key()
264 memcpy(buffer, &vnode->fid.vnode, sizeof(vnode->fid.vnode)); in afs_vnode_cache_get_key()
279 vnode->fid.vnode, vnode->fid.unique, in afs_vnode_cache_get_attr()
295 vnode->fid.vnode, vnode->fid.unique, vnode->status.data_version, in afs_vnode_cache_get_aux()
298 dlen = sizeof(vnode->fid.unique) + sizeof(vnode->status.data_version); in afs_vnode_cache_get_aux()
302 memcpy(buffer, &vnode->fid.unique, sizeof(vnode->fid.unique)); in afs_vnode_cache_get_aux()
303 buffer += sizeof(vnode->fid.unique); in afs_vnode_cache_get_aux()
322 vnode->fid.vnode, vnode->fid.unique, vnode->status.data_version, in afs_vnode_cache_check_aux()
326 dlen = sizeof(vnode->fid.unique) + sizeof(vnode->status.data_version); in afs_vnode_cache_check_aux()
[all …]
Dcallback.c51 vnode->fid.vid, vnode->fid.vnode, vnode->fid.unique); in afs_init_callback_state()
144 struct afs_fid *fid) in afs_break_one_callback() argument
154 if (fid->vid < vnode->fid.vid) in afs_break_one_callback()
156 else if (fid->vid > vnode->fid.vid) in afs_break_one_callback()
158 else if (fid->vnode < vnode->fid.vnode) in afs_break_one_callback()
160 else if (fid->vnode > vnode->fid.vnode) in afs_break_one_callback()
162 else if (fid->unique < vnode->fid.unique) in afs_break_one_callback()
164 else if (fid->unique > vnode->fid.unique) in afs_break_one_callback()
204 callbacks->fid.vid, in afs_break_callbacks()
205 callbacks->fid.vnode, in afs_break_callbacks()
[all …]
Dfsclient.c22 static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_AFSFid() argument
26 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid()
27 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid()
28 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid()
92 status->parent.vid = vnode->fid.vid; in xdr_decode_AFSFetchStatus()
98 vnode->vfs_inode.i_generation = vnode->fid.unique; in xdr_decode_AFSFetchStatus()
123 vnode->fid.vid, vnode->fid.vnode); in xdr_decode_AFSFetchStatus()
287 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status()
302 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_file_status()
303 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_file_status()
[all …]
/fs/fat/
Dnfs.c114 struct fat_fid *fid = (struct fat_fid *) fh; in fat_encode_fh_nostale() local
132 fid->i_gen = inode->i_generation; in fat_encode_fh_nostale()
133 fid->i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale()
134 fid->i_pos_hi = (i_pos >> 32) & 0xFFFF; in fat_encode_fh_nostale()
137 fid->parent_i_pos_hi = (i_pos >> 32) & 0xFFFF; in fat_encode_fh_nostale()
138 fid->parent_i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale()
139 fid->parent_i_gen = parent->i_generation; in fat_encode_fh_nostale()
151 static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid, in fat_fh_to_dentry() argument
154 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry()
159 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale()
[all …]
/fs/xfs/
Dxfs_export.c61 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh() local
99 fid->i32.parent_ino = XFS_I(parent)->i_ino; in xfs_fs_encode_fh()
100 fid->i32.parent_gen = parent->i_generation; in xfs_fs_encode_fh()
103 fid->i32.ino = XFS_I(inode)->i_ino; in xfs_fs_encode_fh()
104 fid->i32.gen = inode->i_generation; in xfs_fs_encode_fh()
163 xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_dentry() argument
166 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_dentry()
175 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry()
187 xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_parent() argument
190 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_parent()
[all …]
/fs/cifs/
Dsmb2ops.c247 struct cifs_fid *fid, FILE_ALL_INFO *data) in smb2_query_file_info() argument
257 rc = SMB2_query_info(xid, tcon, fid->persistent_fid, fid->volatile_fid, in smb2_query_file_info()
351 smb2_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in smb2_set_fid() argument
354 cfile->fid.persistent_fid = fid->persistent_fid; in smb2_set_fid()
355 cfile->fid.volatile_fid = fid->volatile_fid; in smb2_set_fid()
362 struct cifs_fid *fid) in smb2_close_file() argument
364 SMB2_close(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_close_file()
369 struct cifs_fid *fid) in smb2_flush_file() argument
371 return SMB2_flush(xid, tcon, fid->persistent_fid, fid->volatile_fid); in smb2_flush_file()
394 parms->persistent_fid = cfile->fid.persistent_fid; in smb2_sync_read()
[all …]
Dsmb2file.c62 struct cifs_fid *fid, __u32 *oplock, FILE_ALL_INFO *buf, in smb2_open_file() argument
87 memcpy(smb2_oplock + 1, fid->lease_key, SMB2_LEASE_KEY_SIZE); in smb2_open_file()
89 rc = SMB2_open(xid, tcon, smb2_path, &fid->persistent_fid, in smb2_open_file()
90 &fid->volatile_fid, desired_access, disposition, in smb2_open_file()
97 rc = SMB2_get_srv_num(xid, tcon, fid->persistent_fid, in smb2_open_file()
98 fid->volatile_fid, in smb2_open_file()
173 cfile->fid.persistent_fid, in smb2_unlock_range()
174 cfile->fid.volatile_fid, in smb2_unlock_range()
197 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range()
198 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range()
[all …]
/fs/coda/
Dcnode.c46 struct CodaFid *fid = (struct CodaFid *)data; in coda_test_inode() local
48 return coda_fideq(&cii->c_fid, fid); in coda_test_inode()
53 struct CodaFid *fid = (struct CodaFid *)data; in coda_set_inode() local
55 cii->c_fid = *fid; in coda_set_inode()
59 struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid, in coda_iget() argument
64 unsigned long hash = coda_f2i(fid); in coda_iget()
66 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget()
91 struct inode *coda_cnode_make(struct CodaFid *fid, struct super_block *sb) in coda_cnode_make() argument
98 error = venus_getattr(sb, fid, &attr); in coda_cnode_make()
102 inode = coda_iget(sb, fid, &attr); in coda_cnode_make()
[all …]
Dupcall.c91 int venus_getattr(struct super_block *sb, struct CodaFid *fid, in venus_getattr() argument
100 inp->coda_getattr.VFid = *fid; in venus_getattr()
110 int venus_setattr(struct super_block *sb, struct CodaFid *fid, in venus_setattr() argument
120 inp->coda_setattr.VFid = *fid; in venus_setattr()
129 int venus_lookup(struct super_block *sb, struct CodaFid *fid, in venus_lookup() argument
142 inp->coda_lookup.VFid = *fid; in venus_lookup()
159 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, in venus_close() argument
170 inp->coda_close.VFid = *fid; in venus_close()
179 int venus_open(struct super_block *sb, struct CodaFid *fid, in venus_open() argument
189 inp->coda_open_by_fd.VFid = *fid; in venus_open()
[all …]
/fs/btrfs/
Dexport.c19 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local
34 fid->objectid = btrfs_ino(inode); in btrfs_encode_fh()
35 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh()
36 fid->gen = inode->i_generation; in btrfs_encode_fh()
41 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh()
42 fid->parent_gen = parent->i_generation; in btrfs_encode_fh()
45 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh()
46 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh()
113 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent()
116 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local
[all …]
/fs/exportfs/
Dexpfs.c318 static int export_encode_fh(struct inode *inode, struct fid *fid, in export_encode_fh() argument
333 fid->i32.ino = inode->i_ino; in export_encode_fh()
334 fid->i32.gen = inode->i_generation; in export_encode_fh()
336 fid->i32.parent_ino = parent->i_ino; in export_encode_fh()
337 fid->i32.parent_gen = parent->i_generation; in export_encode_fh()
345 int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, in exportfs_encode_inode_fh() argument
351 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh()
353 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh()
357 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument
373 error = exportfs_encode_inode_fh(inode, fid, max_len, parent); in exportfs_encode_fh()
[all …]
/fs/ocfs2/
Dexport.c239 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_dentry() argument
246 handle.ih_blkno = (u64)le32_to_cpu(fid->raw[0]) << 32; in ocfs2_fh_to_dentry()
247 handle.ih_blkno |= (u64)le32_to_cpu(fid->raw[1]); in ocfs2_fh_to_dentry()
248 handle.ih_generation = le32_to_cpu(fid->raw[2]); in ocfs2_fh_to_dentry()
253 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_parent() argument
260 parent.ih_blkno = (u64)le32_to_cpu(fid->raw[3]) << 32; in ocfs2_fh_to_parent()
261 parent.ih_blkno |= (u64)le32_to_cpu(fid->raw[4]); in ocfs2_fh_to_parent()
262 parent.ih_generation = le32_to_cpu(fid->raw[5]); in ocfs2_fh_to_parent()

1234