/fs/9p/ |
D | fid.c | 43 int v9fs_fid_add(struct dentry *dentry, struct p9_fid *fid) in v9fs_fid_add() argument 48 fid->fid, dentry->d_name.name); in v9fs_fid_add() 62 list_add(&fid->dlist, &dent->fidlist); in v9fs_fid_add() 79 struct p9_fid *fid, *ret; in v9fs_fid_find() local 87 list_for_each_entry(fid, &dent->fidlist, dlist) { in v9fs_fid_find() 88 if (any || fid->uid == uid) { in v9fs_fid_find() 89 ret = fid; in v9fs_fid_find() 113 struct p9_fid *fid; in v9fs_fid_lookup() local 138 fid = v9fs_fid_find(dentry, uid, any); in v9fs_fid_lookup() 139 if (fid) in v9fs_fid_lookup() [all …]
|
D | vfs_file.c | 57 struct p9_fid *fid; in v9fs_file_open() local 63 fid = file->private_data; in v9fs_file_open() 64 if (!fid) { in v9fs_file_open() 65 fid = v9fs_fid_clone(file->f_path.dentry); in v9fs_file_open() 66 if (IS_ERR(fid)) in v9fs_file_open() 67 return PTR_ERR(fid); in v9fs_file_open() 69 err = p9_client_open(fid, omode); in v9fs_file_open() 71 p9_client_clunk(fid); in v9fs_file_open() 82 file->private_data = fid; in v9fs_file_open() 83 if ((fid->qid.version) && (v9ses->cache)) { in v9fs_file_open() [all …]
|
D | vfs_inode.c | 332 v9fs_inode_from_fid(struct v9fs_session_info *v9ses, struct p9_fid *fid, in v9fs_inode_from_fid() argument 340 st = p9_client_stat(fid); in v9fs_inode_from_fid() 417 struct p9_fid *dfid, *ofid, *fid; in v9fs_create() local 424 fid = NULL; in v9fs_create() 450 fid = p9_client_walk(dfid, 1, &name, 0); in v9fs_create() 451 if (IS_ERR(fid)) { in v9fs_create() 452 err = PTR_ERR(fid); in v9fs_create() 454 fid = NULL; in v9fs_create() 460 inode = v9fs_inode_from_fid(v9ses, fid, dir->i_sb); in v9fs_create() 473 v9fs_fid_add(dentry, fid); in v9fs_create() [all …]
|
D | vfs_dir.c | 74 struct p9_fid *fid; in v9fs_dir_readdir() local 80 fid = filp->private_data; in v9fs_dir_readdir() 82 buflen = fid->clnt->msize - P9_IOHDRSZ; in v9fs_dir_readdir() 89 fid->rdir_fpos); in v9fs_dir_readdir() 96 fid->clnt->dotu); in v9fs_dir_readdir() 105 fid->rdir_fpos += st.size+2; in v9fs_dir_readdir() 136 struct p9_fid *fid; in v9fs_dir_release() local 138 fid = filp->private_data; in v9fs_dir_release() 140 "inode: %p filp: %p fid: %d\n", inode, filp, fid->fid); in v9fs_dir_release() 142 p9_client_clunk(fid); in v9fs_dir_release()
|
D | vfs_super.c | 118 struct p9_fid *fid; in v9fs_get_sb() local 128 fid = v9fs_session_init(v9ses, dev_name, data); in v9fs_get_sb() 129 if (IS_ERR(fid)) { in v9fs_get_sb() 130 retval = PTR_ERR(fid); in v9fs_get_sb() 134 st = p9_client_stat(fid); in v9fs_get_sb() 167 v9fs_fid_add(root, fid); in v9fs_get_sb() 184 p9_client_clunk(fid); in v9fs_get_sb()
|
D | v9fs.c | 190 struct p9_fid *fid; in v9fs_session_init() local 248 fid = p9_client_attach(v9ses->clnt, NULL, v9ses->uname, ~0, in v9fs_session_init() 250 if (IS_ERR(fid)) { in v9fs_session_init() 251 retval = PTR_ERR(fid); in v9fs_session_init() 252 fid = NULL; in v9fs_session_init() 258 fid->uid = v9ses->uid; in v9fs_session_init() 260 fid->uid = ~0; in v9fs_session_init() 262 return fid; in v9fs_session_init()
|
/fs/afs/ |
D | vnode.c | 87 if (vnode->fid.vid < xvnode->fid.vid) in afs_install_vnode() 89 else if (vnode->fid.vid > xvnode->fid.vid) in afs_install_vnode() 91 else if (vnode->fid.vnode < xvnode->fid.vnode) in afs_install_vnode() 93 else if (vnode->fid.vnode > xvnode->fid.vnode) in afs_install_vnode() 95 else if (vnode->fid.unique < xvnode->fid.unique) in afs_install_vnode() 97 else if (vnode->fid.unique > xvnode->fid.unique) in afs_install_vnode() 238 _enter("{%x:%u},%d", vnode->fid.vid, vnode->fid.vnode, ret); in afs_vnode_status_update_failed() 276 vnode->fid.vid, vnode->fid.vnode, vnode->fid.unique); in afs_vnode_fetch_status() 404 vnode->fid.vid, in afs_vnode_fetch_data() 405 vnode->fid.vnode, in afs_vnode_fetch_data() [all …]
|
D | inode.c | 26 struct afs_fid fid; member 72 inode->i_version = vnode->fid.unique; in afs_inode_map_status() 96 return inode->i_ino == data->fid.vnode && in afs_iget5_test() 97 inode->i_version == data->fid.unique; in afs_iget5_test() 108 inode->i_ino = data->fid.vnode; in afs_iget5_set() 109 inode->i_version = data->fid.unique; in afs_iget5_set() 110 vnode->fid = data->fid; in afs_iget5_set() 120 struct afs_fid *fid, struct afs_file_status *status, in afs_iget() argument 123 struct afs_iget_data data = { .fid = *fid }; in afs_iget() 129 _enter(",{%x:%u.%u},,", fid->vid, fid->vnode, fid->unique); in afs_iget() [all …]
|
D | dir.c | 121 struct afs_fid fid; member 435 cookie->fid.vnode = ino; in afs_lookup_filldir() 436 cookie->fid.unique = dtype; in afs_lookup_filldir() 448 struct afs_fid *fid, struct key *key) in afs_do_lookup() argument 462 cookie.fid.vid = as->volume->vid; in afs_do_lookup() 479 *fid = cookie.fid; in afs_do_lookup() 480 _leave(" = 0 { vn=%u u=%u }", fid->vnode, fid->unique); in afs_do_lookup() 491 struct afs_fid fid; in afs_lookup() local 499 vnode->fid.vid, vnode->fid.vnode, dentry, dentry->d_name.name); in afs_lookup() 526 ret = afs_do_lookup(dir, dentry, &fid, key); in afs_lookup() [all …]
|
D | callback.c | 51 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 …]
|
D | fsclient.c | 21 static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid) in xdr_decode_AFSFid() argument 25 fid->vid = ntohl(*bp++); in xdr_decode_AFSFid() 26 fid->vnode = ntohl(*bp++); in xdr_decode_AFSFid() 27 fid->unique = ntohl(*bp++); in xdr_decode_AFSFid() 85 status->parent.vid = vnode->fid.vid; in xdr_decode_AFSFetchStatus() 91 vnode->vfs_inode.i_version = vnode->fid.unique; in xdr_decode_AFSFetchStatus() 115 vnode->fid.vid, vnode->fid.vnode); in xdr_decode_AFSFetchStatus() 279 key_serial(key), vnode->fid.vid, vnode->fid.vnode); in afs_fs_fetch_file_status() 294 bp[1] = htonl(vnode->fid.vid); in afs_fs_fetch_file_status() 295 bp[2] = htonl(vnode->fid.vnode); in afs_fs_fetch_file_status() [all …]
|
D | flock.c | 64 _enter("{%x:%u}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_may_be_available() 116 _enter("{%x:%u}", vnode->fid.vid, vnode->fid.vnode); in afs_lock_work() 130 vnode->fid.vid, vnode->fid.vnode, ret); in afs_lock_work() 162 vnode->fid.vid, vnode->fid.vnode, ret); in afs_lock_work() 261 _enter("{%x:%u},%u", vnode->fid.vid, vnode->fid.vnode, fl->fl_type); in afs_do_setlk() 448 _enter("{%x:%u},%u", vnode->fid.vid, vnode->fid.vnode, fl->fl_type); in afs_do_unlk() 522 vnode->fid.vid, vnode->fid.vnode, cmd, in afs_lock() 545 vnode->fid.vid, vnode->fid.vnode, cmd, in afs_flock()
|
D | security.c | 102 _leave(" = {%x}", auth_vnode->fid.vnode); in afs_get_auth_inode() 113 _enter("{%x:%u}", vnode->fid.vid, vnode->fid.vnode); in afs_clear_permits() 137 vnode->fid.vid, vnode->fid.vnode, key_serial(key), acl_order); in afs_cache_permit() 149 if (memcmp(&auth_vnode->fid, &vnode->status.parent, in afs_cache_permit() 226 vnode->fid.vid, vnode->fid.vnode, key_serial(key)); in afs_check_permit() 295 vnode->fid.vid, vnode->fid.vnode, vnode->flags, mask); in afs_permission()
|
D | cache.c | 218 vnode->fid.vnode, in afs_vnode_cache_match() 219 vnode->fid.unique, in afs_vnode_cache_match() 225 if (vnode->fid.vnode != cvnode->vnode_id) { in afs_vnode_cache_match() 230 if (vnode->fid.unique != cvnode->vnode_unique || in afs_vnode_cache_match() 252 cvnode->vnode_id = vnode->fid.vnode; in afs_vnode_cache_update() 253 cvnode->vnode_unique = vnode->fid.unique; in afs_vnode_cache_update()
|
/fs/btrfs/ |
D | export.c | 19 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() local 31 fid->objectid = BTRFS_I(inode)->location.objectid; in btrfs_encode_fh() 32 fid->root_objectid = BTRFS_I(inode)->root->objectid; in btrfs_encode_fh() 33 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() 48 if (parent_root_id != fid->root_objectid) { in btrfs_encode_fh() 49 fid->parent_root_objectid = parent_root_id; in btrfs_encode_fh() 93 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() 96 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() local [all …]
|
/fs/xfs/linux-2.6/ |
D | xfs_export.c | 60 struct fid *fid = (struct fid *)fh; in xfs_fs_encode_fh() local 90 fid->i32.parent_ino = dentry->d_parent->d_inode->i_ino; in xfs_fs_encode_fh() 91 fid->i32.parent_gen = dentry->d_parent->d_inode->i_generation; in xfs_fs_encode_fh() 95 fid->i32.ino = inode->i_ino; in xfs_fs_encode_fh() 96 fid->i32.gen = inode->i_generation; in xfs_fs_encode_fh() 160 xfs_fs_fh_to_dentry(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_dentry() argument 163 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_dentry() 172 inode = xfs_nfs_get_inode(sb, fid->i32.ino, fid->i32.gen); in xfs_fs_fh_to_dentry() 184 xfs_fs_fh_to_parent(struct super_block *sb, struct fid *fid, in xfs_fs_fh_to_parent() argument 187 struct xfs_fid64 *fid64 = (struct xfs_fid64 *)fid; in xfs_fs_fh_to_parent() [all …]
|
/fs/coda/ |
D | cnode.c | 47 struct CodaFid *fid = (struct CodaFid *)data; in coda_test_inode() local 48 return coda_fideq(&(ITOC(inode)->c_fid), fid); in coda_test_inode() 53 struct CodaFid *fid = (struct CodaFid *)data; in coda_set_inode() local 54 ITOC(inode)->c_fid = *fid; in coda_set_inode() 58 struct inode * coda_iget(struct super_block * sb, struct CodaFid * fid, in coda_iget() argument 63 unsigned long hash = coda_f2i(fid); in coda_iget() 65 inode = iget5_locked(sb, hash, coda_test_inode, coda_set_inode, fid); in coda_iget() 89 int coda_cnode_make(struct inode **inode, struct CodaFid *fid, struct super_block *sb) in coda_cnode_make() argument 95 error = venus_getattr(sb, fid, &attr); in coda_cnode_make() 101 *inode = coda_iget(sb, fid, &attr); in coda_cnode_make() [all …]
|
D | upcall.c | 91 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/ocfs2/ |
D | export.c | 180 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_dentry() argument 187 handle.ih_blkno = (u64)le32_to_cpu(fid->raw[0]) << 32; in ocfs2_fh_to_dentry() 188 handle.ih_blkno |= (u64)le32_to_cpu(fid->raw[1]); in ocfs2_fh_to_dentry() 189 handle.ih_generation = le32_to_cpu(fid->raw[2]); in ocfs2_fh_to_dentry() 194 struct fid *fid, int fh_len, int fh_type) in ocfs2_fh_to_parent() argument 201 parent.ih_blkno = (u64)le32_to_cpu(fid->raw[3]) << 32; in ocfs2_fh_to_parent() 202 parent.ih_blkno |= (u64)le32_to_cpu(fid->raw[4]); in ocfs2_fh_to_parent() 203 parent.ih_generation = le32_to_cpu(fid->raw[5]); in ocfs2_fh_to_parent()
|
/fs/exportfs/ |
D | expfs.c | 316 static int export_encode_fh(struct dentry *dentry, struct fid *fid, in export_encode_fh() argument 327 fid->i32.ino = inode->i_ino; in export_encode_fh() 328 fid->i32.gen = inode->i_generation; in export_encode_fh() 334 fid->i32.parent_ino = parent->i_ino; in export_encode_fh() 335 fid->i32.parent_gen = parent->i_generation; in export_encode_fh() 344 int exportfs_encode_fh(struct dentry *dentry, struct fid *fid, int *max_len, in exportfs_encode_fh() argument 351 error = nop->encode_fh(dentry, fid->raw, max_len, connectable); in exportfs_encode_fh() 353 error = export_encode_fh(dentry, fid, max_len, connectable); in exportfs_encode_fh() 359 struct dentry *exportfs_decode_fh(struct vfsmount *mnt, struct fid *fid, in exportfs_decode_fh() argument 371 result = nop->fh_to_dentry(mnt->mnt_sb, fid, fh_len, fileid_type); in exportfs_decode_fh() [all …]
|
/fs/jfs/ |
D | jfs_inode.h | 21 struct fid; 37 extern struct dentry *jfs_fh_to_dentry(struct super_block *sb, struct fid *fid, 39 extern struct dentry *jfs_fh_to_parent(struct super_block *sb, struct fid *fid,
|
/fs/squashfs/ |
D | export.c | 91 struct fid *fid, int fh_len, int fh_type) in squashfs_fh_to_dentry() argument 97 return squashfs_export_iget(sb, fid->i32.ino); in squashfs_fh_to_dentry() 102 struct fid *fid, int fh_len, int fh_type) in squashfs_fh_to_parent() argument 107 return squashfs_export_iget(sb, fid->i32.parent_ino); in squashfs_fh_to_parent()
|
/fs/efs/ |
D | namei.c | 99 struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid, in efs_fh_to_dentry() argument 102 return generic_fh_to_dentry(sb, fid, fh_len, fh_type, in efs_fh_to_dentry() 106 struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid, in efs_fh_to_parent() argument 109 return generic_fh_to_parent(sb, fid, fh_len, fh_type, in efs_fh_to_parent()
|
D | efs.h | 122 struct fid; 133 extern struct dentry *efs_fh_to_dentry(struct super_block *sb, struct fid *fid, 135 extern struct dentry *efs_fh_to_parent(struct super_block *sb, struct fid *fid,
|
/fs/isofs/ |
D | export.c | 162 struct fid *fid, int fh_len, int fh_type) in isofs_fh_to_dentry() argument 164 struct isofs_fid *ifid = (struct isofs_fid *)fid; in isofs_fh_to_dentry() 174 struct fid *fid, int fh_len, int fh_type) in isofs_fh_to_parent() argument 176 struct isofs_fid *ifid = (struct isofs_fid *)fid; in isofs_fh_to_parent()
|