/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_inode.c | 477 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument 483 st = p9_client_stat(fid); in v9fs_inode_from_fid() 593 struct p9_fid *dfid, *ofid, *fid; in v9fs_create() local 600 fid = NULL; in v9fs_create() 625 fid = p9_client_walk(dfid, 1, &name, 1); in v9fs_create() 626 if (IS_ERR(fid)) { in v9fs_create() 627 err = PTR_ERR(fid); in v9fs_create() 630 fid = NULL; in v9fs_create() 636 inode = v9fs_get_new_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create() 643 v9fs_fid_add(dentry, fid); in v9fs_create() [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_super.c | 117 struct p9_fid *fid; in v9fs_mount() local 126 fid = v9fs_session_init(v9ses, dev_name, data); in v9fs_mount() 127 if (IS_ERR(fid)) { in v9fs_mount() 128 retval = PTR_ERR(fid); in v9fs_mount() 160 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC); in v9fs_mount() 170 st = p9_client_stat(fid); in v9fs_mount() 182 retval = v9fs_get_acl(inode, fid); in v9fs_mount() 185 v9fs_fid_add(root, fid); in v9fs_mount() 191 p9_client_clunk(fid); in v9fs_mount() 204 p9_client_clunk(fid); in v9fs_mount() [all …]
|
/fs/afs/ |
D | fsclient.c | 20 static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_AFSFid() argument 24 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid() 25 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid() 26 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid() 278 key_serial(op->key), vp->fid.vid, vp->fid.vnode); in afs_fs_fetch_status() 288 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_status() 289 bp[2] = htonl(vp->fid.vnode); in afs_fs_fetch_status() 290 bp[3] = htonl(vp->fid.unique); in afs_fs_fetch_status() 292 trace_afs_make_fs_call(call, &vp->fid); in afs_fs_fetch_status() 464 bp[1] = htonl(vp->fid.vid); in afs_fs_fetch_data64() [all …]
|
D | inode.c | 43 vnode->fid.vid, in dump_vnode() 44 vnode->fid.vnode, in dump_vnode() 45 vnode->fid.unique); in dump_vnode() 48 parent_vnode->fid.vid, in dump_vnode() 49 parent_vnode->fid.vnode, in dump_vnode() 50 parent_vnode->fid.unique); in dump_vnode() 68 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_inode_init_from_status() 164 vp->fid.vid, vp->fid.vnode, vp->fid.unique, in afs_apply_status() 171 vnode->fid.vid, in afs_apply_status() 172 vnode->fid.vnode, in afs_apply_status() [all …]
|
D | callback.c | 52 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, true); in __afs_break_callback() 54 trace_afs_cb_break(&vnode->fid, vnode->cb_break, reason, false); in __afs_break_callback() 109 struct afs_fid *fid) in afs_break_one_callback() argument 115 if (fid->vnode == 0 && fid->unique == 0) { in afs_break_one_callback() 119 trace_afs_cb_break(fid, volume->cb_v_break, in afs_break_one_callback() 133 inode = find_inode_rcu(sb, fid->vnode, afs_ilookup5_test_by_fid, fid); in afs_break_one_callback() 138 trace_afs_cb_miss(fid, afs_cb_break_for_callback); in afs_break_one_callback() 148 afs_volid_t vid = cbb->fid.vid; in afs_break_some_callbacks() 158 if (cbb->fid.vid == vid) { in afs_break_some_callbacks() 160 cbb->fid.vid, in afs_break_some_callbacks() [all …]
|
D | dynroot.c | 32 struct afs_fid *fid = opaque; in afs_iget5_pseudo_set() local 35 vnode->fid = *fid; in afs_iget5_pseudo_set() 36 inode->i_ino = fid->vnode; in afs_iget5_pseudo_set() 37 inode->i_generation = fid->unique; in afs_iget5_pseudo_set() 50 struct afs_fid fid = {}; in afs_iget_pseudo_dir() local 55 fid.vid = as->volume->vid; in afs_iget_pseudo_dir() 57 fid.vnode = 1; in afs_iget_pseudo_dir() 58 fid.unique = 1; in afs_iget_pseudo_dir() 60 fid.vnode = atomic_inc_return(&afs_autocell_ino); in afs_iget_pseudo_dir() 61 fid.unique = 0; in afs_iget_pseudo_dir() [all …]
|
D | yfsclient.c | 20 static void xdr_decode_YFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_YFSFid() argument 24 fid->vid = xdr_to_u64(x->volume); in xdr_decode_YFSFid() 25 fid->vnode = xdr_to_u64(x->vnode.lo); in xdr_decode_YFSFid() 26 fid->vnode_hi = ntohl(x->vnode.hi); in xdr_decode_YFSFid() 27 fid->unique = ntohl(x->vnode.unique); in xdr_decode_YFSFid() 45 static __be32 *xdr_encode_YFSFid(__be32 *bp, struct afs_fid *fid) in xdr_encode_YFSFid() argument 49 x->volume = u64_to_xdr(fid->vid); in xdr_encode_YFSFid() 50 x->vnode.lo = u64_to_xdr(fid->vnode); in xdr_encode_YFSFid() 51 x->vnode.hi = htonl(fid->vnode_hi); in xdr_encode_YFSFid() 52 x->vnode.unique = htonl(fid->unique); in xdr_encode_YFSFid() [all …]
|
D | dir.c | 92 struct afs_fid fid; member 173 dvnode->fid.vid, dvnode->fid.vnode, in afs_dir_check_pages() 558 cookie->fid.vnode = ino; in afs_lookup_one_filldir() 559 cookie->fid.unique = dtype; in afs_lookup_one_filldir() 571 struct afs_fid *fid, struct key *key, in afs_do_lookup_one() argument 578 .fid.vid = as->volume->vid in afs_do_lookup_one() 597 *fid = cookie.fid; in afs_do_lookup_one() 598 _leave(" = 0 { vn=%llu u=%u }", fid->vnode, fid->unique); in afs_do_lookup_one() 697 vp->fid.vid, vp->fid.vnode, vp->fid.unique); in afs_do_lookup_success() 772 cookie->fids[i].vid = dvnode->fid.vid; in afs_do_lookup() [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 | 47 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh() local 85 fid->i32.parent_ino = XFS_I(parent)->i_ino; in xfs_fs_encode_fh() 86 fid->i32.parent_gen = parent->i_generation; in xfs_fs_encode_fh() 89 fid->i32.ino = XFS_I(inode)->i_ino; in xfs_fs_encode_fh() 90 fid->i32.gen = inode->i_generation; in xfs_fs_encode_fh() 158 xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_dentry() argument 161 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_dentry() 170 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry() 182 xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_parent() argument 185 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 | 631 SMB2_close(0, cfid->tcon, cfid->fid->persistent_fid, in smb2_close_cached_fid() 632 cfid->fid->volatile_fid); in smb2_close_cached_fid() 716 pfid = tcon->crfid.fid; in open_shroot() 732 oparms.fid = pfid; in open_shroot() 770 struct cifs_fid fid = { in open_shroot() local 780 memcpy(pfid, tcon->crfid.fid, sizeof(*pfid)); in open_shroot() 787 SMB2_close(xid, tcon, fid.persistent_fid, fid.volatile_fid); in open_shroot() 807 oparms.fid->persistent_fid = o_rsp->PersistentFileId; in open_shroot() 808 oparms.fid->volatile_fid = o_rsp->VolatileFileId; in open_shroot() 810 oparms.fid->mid = le64_to_cpu(o_rsp->sync_hdr.MessageId); in open_shroot() [all …]
|
D | link.c | 312 struct cifs_fid fid; in cifs_query_mf_symlink() local 324 oparms.fid = &fid; in cifs_query_mf_symlink() 337 io_parms.netfid = fid.netfid; in cifs_query_mf_symlink() 345 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_mf_symlink() 356 struct cifs_fid fid; in cifs_create_mf_symlink() local 366 oparms.fid = &fid; in cifs_create_mf_symlink() 373 io_parms.netfid = fid.netfid; in cifs_create_mf_symlink() 380 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_create_mf_symlink() 393 struct cifs_fid fid; in smb3_query_mf_symlink() local 406 oparms.fid = &fid; in smb3_query_mf_symlink() [all …]
|
D | smb1ops.c | 67 return ob1->fid.netfid == ob2->fid.netfid; in cifs_compare_fids() 563 struct cifs_fid fid; in cifs_query_path_info() local 572 oparms.fid = &fid; in cifs_query_path_info() 580 CIFSSMBClose(xid, tcon, fid.netfid); in cifs_query_path_info() 609 struct cifs_fid *fid, FILE_ALL_INFO *data) in cifs_query_file_info() argument 611 return CIFSSMBQFileInfo(xid, tcon, fid->netfid, data); in cifs_query_file_info() 705 &oparms->fid->netfid, oplock, buf, in cifs_open_file() 712 cifs_set_fid(struct cifsFileInfo *cfile, struct cifs_fid *fid, __u32 oplock) in cifs_set_fid() argument 715 cfile->fid.netfid = fid->netfid; in cifs_set_fid() 722 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() 93 fid->persistent_fid, in smb2_open_file() 94 fid->volatile_fid, in smb2_open_file() 180 cfile->fid.persistent_fid, in smb2_unlock_range() 181 cfile->fid.volatile_fid, in smb2_unlock_range() 204 stored_rc = smb2_lockv(xid, tcon, cfile->fid.persistent_fid, in smb2_unlock_range() 205 cfile->fid.volatile_fid, current->tgid, in smb2_unlock_range() 237 cfile->fid.persistent_fid, in smb2_push_mand_fdlocks() [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() 88 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() 91 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local [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/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 …]
|