/fs/9p/ |
D | fid.c | 29 static inline void __add_fid(struct dentry *dentry, struct p9_fid *fid) in __add_fid() argument 31 hlist_add_head(&fid->dlist, (struct hlist_head *)&dentry->d_fsdata); in __add_fid() 34 void v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) in v9fs_fid_add() argument 37 __add_fid(dentry, fid); in v9fs_fid_add() 51 struct p9_fid *fid, *ret; in v9fs_fid_find() local 61 hlist_for_each_entry(fid, h, dlist) { in v9fs_fid_find() 62 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find() 63 ret = fid; in v9fs_fid_find() 108 struct p9_fid *fid, *old_fid = NULL; in v9fs_fid_lookup_with_uid() local 112 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup_with_uid() [all …]
|
D | vfs_inode_dotl.c | 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() [all …]
|
D | vfs_dir.c | 73 struct p9_fid *fid = filp->private_data; in v9fs_alloc_rdir_buf() local 74 if (!fid->rdir) in v9fs_alloc_rdir_buf() 75 fid->rdir = kzalloc(sizeof(struct p9_rdir) + buflen, GFP_KERNEL); in v9fs_alloc_rdir_buf() 76 return fid->rdir; in v9fs_alloc_rdir_buf() 91 struct p9_fid *fid; in v9fs_dir_readdir() local 97 fid = file->private_data; in v9fs_dir_readdir() 99 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 123 err = p9stat_read(fid->clnt, rdir->buf + rdir->head, in v9fs_dir_readdir() 151 struct p9_fid *fid; in v9fs_dir_readdir_dotl() local 157 fid = file->private_data; in v9fs_dir_readdir_dotl() [all …]
|
D | vfs_file.c | 49 struct p9_fid *fid; in v9fs_file_open() local 60 fid = file->private_data; in v9fs_file_open() 61 if (!fid) { in v9fs_file_open() 62 fid = v9fs_fid_clone(file_dentry(file)); in v9fs_file_open() 63 if (IS_ERR(fid)) in v9fs_file_open() 64 return PTR_ERR(fid); in v9fs_file_open() 66 err = p9_client_open(fid, omode); in v9fs_file_open() 68 p9_client_clunk(fid); in v9fs_file_open() 76 file->private_data = fid; in v9fs_file_open() 88 fid = v9fs_writeback_fid(file_dentry(file)); in v9fs_file_open() [all …]
|
D | xattr.c | 25 ssize_t v9fs_fid_xattr_get(struct p9_fid *fid, const char *name, in v9fs_fid_xattr_get() argument 37 attr_fid = p9_client_xattrwalk(fid, name, &attr_size); in v9fs_fid_xattr_get() 73 struct p9_fid *fid; in v9fs_xattr_get() local 77 fid = v9fs_fid_lookup(dentry); in v9fs_xattr_get() 78 if (IS_ERR(fid)) in v9fs_xattr_get() 79 return PTR_ERR(fid); in v9fs_xattr_get() 81 return v9fs_fid_xattr_get(fid, name, buffer, buffer_size); in v9fs_xattr_get() 99 struct p9_fid *fid = v9fs_fid_lookup(dentry); in v9fs_xattr_set() local 100 return v9fs_fid_xattr_set(fid, name, value, value_len, flags); in v9fs_xattr_set() 103 int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name, in v9fs_fid_xattr_set() argument [all …]
|
D | vfs_inode.c | 531 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument 537 st = p9_client_stat(fid); in v9fs_inode_from_fid() 647 struct p9_fid *dfid, *ofid, *fid; in v9fs_create() local 654 fid = NULL; in v9fs_create() 679 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_create() 680 if (IS_ERR(fid)) { in v9fs_create() 681 err = PTR_ERR(fid); in v9fs_create() 684 fid = NULL; in v9fs_create() 690 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create() 697 v9fs_fid_add(dentry, fid); in v9fs_create() [all …]
|
D | vfs_super.c | 115 struct p9_fid *fid; in v9fs_mount() local 124 fid = v9fs_session_init(v9ses, dev_name, data); in v9fs_mount() 125 if (IS_ERR(fid)) { in v9fs_mount() 126 retval = PTR_ERR(fid); in v9fs_mount() 158 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC); in v9fs_mount() 168 st = p9_client_stat(fid); in v9fs_mount() 180 retval = v9fs_get_acl(inode, fid); in v9fs_mount() 183 v9fs_fid_add(root, fid); in v9fs_mount() 189 p9_client_clunk(fid); in v9fs_mount() 202 p9_client_clunk(fid); in v9fs_mount() [all …]
|
D | acl.c | 28 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, XATTR_NAME_POSIX_ACL_DEFAULT); in v9fs_get_acl() 71 pacl = __v9fs_get_acl(fid, XATTR_NAME_POSIX_ACL_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 …]
|
/fs/afs/ |
D | inode.c | 45 vnode->fid.vid, in dump_vnode() 46 vnode->fid.vnode, in dump_vnode() 47 vnode->fid.unique); in dump_vnode() 50 parent_vnode->fid.vid, in dump_vnode() 51 parent_vnode->fid.vnode, in dump_vnode() 52 parent_vnode->fid.unique); in dump_vnode() 179 vnode->fid.vid, in afs_apply_status() 180 vnode->fid.vnode, in afs_apply_status() 181 vnode->fid.unique, in afs_apply_status() 217 vnode->fid.vid, vnode->fid.vnode, in afs_apply_status() [all …]
|
D | fsclient.c | 26 static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_AFSFid() argument 30 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid() 31 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid() 32 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid() 287 key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status() 303 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_file_status() 304 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_file_status() 305 bp[3] = htonl(vnode->fid.unique); in afs_fs_fetch_file_status() 308 trace_afs_make_fs_call(call, &vnode->fid); in afs_fs_fetch_file_status() 498 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_data64() [all …]
|
D | callback.c | 227 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback() 229 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, false); in __afs_break_callback() 247 struct afs_fid *fid) in afs_break_one_callback() argument 257 if (vi->vid < fid->vid) in afs_break_one_callback() 259 if (vi->vid > fid->vid) { in afs_break_one_callback() 277 if (fid->vnode == 0 && fid->unique == 0) { in afs_break_one_callback() 284 trace_afs_cb_break(fid, volume->cb_v_break, in afs_break_one_callback() 289 data.fid = *fid; in afs_break_one_callback() 290 inode = ilookup5_nowait(cbi->sb, fid->vnode, in afs_break_one_callback() 297 trace_afs_cb_miss(fid, afs_cb_break_for_callback); in afs_break_one_callback() [all …]
|
D | dir.c | 93 struct afs_fid fid; member 176 dvnode->fid.vid, dvnode->fid.vnode, in afs_dir_check_pages() 549 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 550 cookie->fid.unique = dtype; in afs_lookup_one_filldir() 562 struct afs_fid *fid, struct key *key, in afs_do_lookup_one() argument 569 .fid.vid = as->volume->vid in afs_do_lookup_one() 588 *fid = cookie.fid; in afs_do_lookup_one() 589 _leave(" = 0 { vn=%llu u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one() 691 iget_data.fid = cookie->fids[0]; in afs_do_lookup() 718 iget_data.fid = cookie->fids[i]; in afs_do_lookup() [all …]
|
D | yfsclient.c | 27 static void xdr_decode_YFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_YFSFid() argument 31 fid->vid = xdr_to_u64(x->volume); in xdr_decode_YFSFid() 32 fid->vnode = xdr_to_u64(x->vnode.lo); in xdr_decode_YFSFid() 33 fid->vnode_hi = ntohl(x->vnode.hi); in xdr_decode_YFSFid() 34 fid->unique = ntohl(x->vnode.unique); in xdr_decode_YFSFid() 52 static __be32 *xdr_encode_YFSFid(__be32 *bp, struct afs_fid *fid) in xdr_encode_YFSFid() argument 56 x->volume = u64_to_xdr(fid->vid); in xdr_encode_YFSFid() 57 x->vnode.lo = u64_to_xdr(fid->vnode); in xdr_encode_YFSFid() 58 x->vnode.hi = htonl(fid->vnode_hi); in xdr_encode_YFSFid() 59 x->vnode.unique = htonl(fid->unique); in xdr_encode_YFSFid() [all …]
|
/fs/fat/ |
D | nfs.c | 105 struct fat_fid *fid = (struct fat_fid *) fh; in fat_encode_fh_nostale() local 123 fid->i_gen = inode->i_generation; in fat_encode_fh_nostale() 124 fid->i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale() 125 fid->i_pos_hi = (i_pos >> 32) & 0xFFFF; in fat_encode_fh_nostale() 128 fid->parent_i_pos_hi = (i_pos >> 32) & 0xFFFF; in fat_encode_fh_nostale() 129 fid->parent_i_pos_low = i_pos & 0xFFFFFFFF; in fat_encode_fh_nostale() 130 fid->parent_i_gen = parent->i_generation; in fat_encode_fh_nostale() 142 static struct dentry *fat_fh_to_dentry(struct super_block *sb, struct fid *fid, in fat_fh_to_dentry() argument 145 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in fat_fh_to_dentry() 150 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() [all …]
|
/fs/xfs/ |
D | xfs_export.c | 48 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh() local 86 fid->i32.parent_ino = XFS_I(parent)->i_ino; in xfs_fs_encode_fh() 87 fid->i32.parent_gen = parent->i_generation; in xfs_fs_encode_fh() 90 fid->i32.ino = XFS_I(inode)->i_ino; in xfs_fs_encode_fh() 91 fid->i32.gen = inode->i_generation; in xfs_fs_encode_fh() 159 xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_dentry() argument 162 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_dentry() 171 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry() 183 xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_parent() argument 186 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_parent() [all …]
|
/fs/cifs/ |
D | trace.h | 18 __u64 fid, 24 TP_ARGS(xid, fid, tid, sesid, offset, len, rc), 27 __field(__u64, fid) 36 __entry->fid = fid; 44 __entry->xid, __entry->sesid, __entry->tid, __entry->fid, 51 __u64 fid, \ 57 TP_ARGS(xid, fid, tid, sesid, offset, len, rc)) 69 __u64 fid, 74 TP_ARGS(xid, fid, tid, sesid, offset, len), 77 __field(__u64, fid) [all …]
|
D | smb2ops.c | 604 SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid, in smb2_close_cached_fid() 605 cfid->fid->volatile_fid); in smb2_close_cached_fid() 649 memcpy(pfid, tcon->crfid.fid, sizeof(struct cifs_fid)); in open_shroot() 680 oparms.fid = pfid; in open_shroot() 715 struct cifs_fid fid = { in open_shroot() local 725 memcpy(pfid, tcon->crfid.fid, sizeof(*pfid)); in open_shroot() 732 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in open_shroot() 751 oparms.fid->persistent_fid = o_rsp->PersistentFileId; in open_shroot() 752 oparms.fid->volatile_fid = o_rsp->VolatileFileId; in open_shroot() 754 oparms.fid->mid = le64_to_cpu(o_rsp->sync_hdr.MessageId); in open_shroot() [all …]
|
D | link.c | 309 struct cifs_fid fid; in cifs_query_mf_symlink() local 321 oparms.fid = &fid; in cifs_query_mf_symlink() 334 io_parms.netfid = fid.netfid; in cifs_query_mf_symlink() 342 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_mf_symlink() 353 struct cifs_fid fid; in cifs_create_mf_symlink() local 367 oparms.fid = &fid; in cifs_create_mf_symlink() 374 io_parms.netfid = fid.netfid; in cifs_create_mf_symlink() 381 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_create_mf_symlink() 394 struct cifs_fid fid; in smb3_query_mf_symlink() local 409 oparms.fid = &fid; in smb3_query_mf_symlink() [all …]
|
D | smb1ops.c | 67 return ob1->fid.netfid == ob2->fid.netfid; in cifs_compare_fids() 564 struct cifs_fid fid; in cifs_query_path_info() local 573 oparms.fid = &fid; in cifs_query_path_info() 581 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_path_info() 610 struct cifs_fid *fid, FILE_ALL_INFO *data) in cifs_query_file_info() argument 612 return CIFSSMBQFileInfo(xid, tcon, fid->netfid, data); in cifs_query_file_info() 706 &oparms->fid->netfid, oplock, buf, in cifs_open_file() 713 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 716 cfile->fid.netfid = fid->netfid; in cifs_set_fid() 723 struct cifs_fid *fid) in cifs_close_file() argument [all …]
|
D | smb2file.c | 45 struct cifs_fid *fid = oparms->fid; in smb2_open_file() local 75 rc = SMB2_ioctl(xid, oparms->tcon, fid->persistent_fid, in smb2_open_file() 76 fid->volatile_fid, FSCTL_LMR_REQUEST_RESILIENCY, in smb2_open_file() 94 fid->persistent_fid, in smb2_open_file() 95 fid->volatile_fid, in smb2_open_file() 176 cfile->fid.persistent_fid, in smb2_unlock_range() 177 cfile->fid.volatile_fid, in smb2_unlock_range() 200 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range() 201 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 233 cfile->fid.persistent_fid, in smb2_push_mand_fdlocks() [all …]
|
/fs/coda/ |
D | cnode.c | 47 struct CodaFid *fid = (struct CodaFid *)data; in coda_test_inode() local 49 return coda_fideq(&cii->c_fid, fid); in coda_test_inode() 54 struct CodaFid *fid = (struct CodaFid *)data; in coda_set_inode() local 56 cii->c_fid = *fid; in coda_set_inode() 60 struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid, in coda_iget() argument 65 unsigned long hash = coda_f2i(fid); in coda_iget() 67 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget() 92 struct inode *coda_cnode_make(struct CodaFid *fid, struct super_block *sb) in coda_cnode_make() argument 99 error = venus_getattr(sb, fid, &attr); in coda_cnode_make() 103 inode = coda_iget(sb, fid, &attr); in coda_cnode_make() [all …]
|
D | coda_psdev.h | 49 int venus_getattr(struct super_block *sb, struct CodaFid *fid, 52 int venus_lookup(struct super_block *sb, struct CodaFid *fid, 55 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, 57 int venus_open(struct super_block *sb, struct CodaFid *fid, int flags, 69 int venus_readlink(struct super_block *sb, struct CodaFid *fid, 75 int venus_link(struct super_block *sb, struct CodaFid *fid, 77 int venus_symlink(struct super_block *sb, struct CodaFid *fid, 79 int venus_access(struct super_block *sb, struct CodaFid *fid, int mask); 80 int venus_pioctl(struct super_block *sb, struct CodaFid *fid, 84 int venus_fsync(struct super_block *sb, struct CodaFid *fid); [all …]
|
D | upcall.c | 92 int venus_getattr(struct super_block *sb, struct CodaFid *fid, in venus_getattr() argument 101 inp->coda_getattr.VFid = *fid; in venus_getattr() 111 int venus_setattr(struct super_block *sb, struct CodaFid *fid, in venus_setattr() argument 121 inp->coda_setattr.VFid = *fid; in venus_setattr() 130 int venus_lookup(struct super_block *sb, struct CodaFid *fid, in venus_lookup() argument 143 inp->coda_lookup.VFid = *fid; in venus_lookup() 160 int venus_close(struct super_block *sb, struct CodaFid *fid, int flags, in venus_close() argument 171 inp->coda_close.VFid = *fid; in venus_close() 180 int venus_open(struct super_block *sb, struct CodaFid *fid, in venus_open() argument 190 inp->coda_open_by_fd.VFid = *fid; in venus_open() [all …]
|
/fs/btrfs/ |
D | export.c | 20 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local 35 fid->objectid = btrfs_ino(BTRFS_I(inode)); in btrfs_encode_fh() 36 fid->root_objectid = BTRFS_I(inode)->root->root_key.objectid; in btrfs_encode_fh() 37 fid->gen = inode->i_generation; in btrfs_encode_fh() 42 fid->parent_objectid = BTRFS_I(parent)->location.objectid; in btrfs_encode_fh() 43 fid->parent_gen = parent->i_generation; in btrfs_encode_fh() 46 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh() 47 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh() 109 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() 112 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local [all …]
|
/fs/exportfs/ |
D | expfs.c | 358 static int export_encode_fh(struct inode *inode, struct fid *fid, in export_encode_fh() argument 373 fid->i32.ino = inode->i_ino; in export_encode_fh() 374 fid->i32.gen = inode->i_generation; in export_encode_fh() 376 fid->i32.parent_ino = parent->i_ino; in export_encode_fh() 377 fid->i32.parent_gen = parent->i_generation; in export_encode_fh() 385 int exportfs_encode_inode_fh(struct inode *inode, struct fid *fid, in exportfs_encode_inode_fh() argument 391 return nop->encode_fh(inode, fid->raw, max_len, parent); in exportfs_encode_inode_fh() 393 return export_encode_fh(inode, fid, max_len, parent); in exportfs_encode_inode_fh() 397 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument 413 error = exportfs_encode_inode_fh(inode, fid, max_len, parent); in exportfs_encode_fh() [all …]
|