/fs/nfsd/ |
D | nfs2acl.c | 35 svc_fh *fh; in nfsacld_proc_getacl() local 38 dprintk("nfsd: GETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_getacl() 40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 41 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsacld_proc_getacl() 45 inode = d_inode(fh->fh_dentry); in nfsacld_proc_getacl() 51 nfserr = fh_getattr(fh, &resp->stat); in nfsacld_proc_getacl() 95 svc_fh *fh; in nfsacld_proc_setacl() local 99 dprintk("nfsd: SETACL(2acl) %s\n", SVCFH_fmt(&argp->fh)); in nfsacld_proc_setacl() 101 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() 102 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsacld_proc_setacl() [all …]
|
D | nfs3proc.c | 49 SVCFH_fmt(&argp->fh)); in nfsd3_proc_getattr() 51 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 52 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd3_proc_getattr() 57 nfserr = fh_getattr(&resp->fh, &resp->stat); in nfsd3_proc_getattr() 72 SVCFH_fmt(&argp->fh)); in nfsd3_proc_setattr() 74 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr() 90 SVCFH_fmt(&argp->fh), in nfsd3_proc_lookup() 94 fh_copy(&resp->dirfh, &argp->fh); in nfsd3_proc_lookup() 95 fh_init(&resp->fh, NFS3_FHSIZE); in nfsd3_proc_lookup() [all …]
|
D | nfsfh.c | 143 struct knfsd_fh *fh = &fhp->fh_handle; in nfsd_set_fh_dentry() local 148 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry() 154 if (rqstp->rq_vers == 4 && fh->fh_size == 0) in nfsd_set_fh_dentry() 157 if (fh->fh_version == 1) { in nfsd_set_fh_dentry() 162 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry() 164 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry() 167 if (fh->fh_fsid_type == FSID_MAJOR_MINOR) { in nfsd_set_fh_dentry() 170 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry() 177 fh->fh_fsid[0] = new_encode_dev(MKDEV(ntohl((__force __be32)fh->fh_fsid[0]), in nfsd_set_fh_dentry() 178 ntohl((__force __be32)fh->fh_fsid[1]))); in nfsd_set_fh_dentry() [all …]
|
D | nfs3acl.c | 34 svc_fh *fh; in nfsd3_proc_getacl() local 37 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 38 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_NOP); in nfsd3_proc_getacl() 42 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl() 88 svc_fh *fh; in nfsd3_proc_setacl() local 92 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 93 nfserr = fh_verify(rqstp, &resp->fh, 0, NFSD_MAY_SATTR); in nfsd3_proc_setacl() 97 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl() 99 error = fh_want_write(fh); in nfsd3_proc_setacl() 103 fh_lock(fh); in nfsd3_proc_setacl() [all …]
|
D | xdr3.h | 13 struct svc_fh fh; member 20 struct svc_fh fh; member 26 struct svc_fh fh; member 31 struct svc_fh fh; member 38 svc_fh fh; member 47 struct svc_fh fh; member 56 struct svc_fh fh; member 74 struct svc_fh fh; member 95 struct svc_fh fh; member 104 struct svc_fh fh; member [all …]
|
D | nfsproc.c | 29 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_attrs() 35 return fh_getattr(&resp->fh, &resp->stat); in nfsd_return_dirop() 46 dprintk("nfsd: GETATTR %s\n", SVCFH_fmt(&argp->fh)); in nfsd_proc_getattr() 48 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 49 nfserr = fh_verify(rqstp, &resp->fh, 0, in nfsd_proc_getattr() 67 SVCFH_fmt(&argp->fh), in nfsd_proc_setattr() 70 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 131 SVCFH_fmt(&argp->fh), argp->len, argp->name); in nfsd_proc_lookup() 133 fh_init(&resp->fh, NFS_FHSIZE); in nfsd_proc_lookup() 134 nfserr = nfsd_lookup(rqstp, &argp->fh, argp->name, argp->len, in nfsd_proc_lookup() [all …]
|
D | xdr.h | 11 struct svc_fh fh; member 15 struct svc_fh fh; member 20 struct svc_fh fh; member 26 struct svc_fh fh; member 33 svc_fh fh; member 40 struct svc_fh fh; member 56 struct svc_fh fh; member 77 struct svc_fh fh; member 84 struct svc_fh fh; member 89 struct svc_fh fh; member [all …]
|
D | lockd.c | 30 struct svc_fh fh; in nlm_fopen() local 33 fh_init(&fh,0); in nlm_fopen() 34 fh.fh_handle.fh_size = f->size; in nlm_fopen() 35 memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); in nlm_fopen() 36 fh.fh_export = NULL; in nlm_fopen() 38 nfserr = nfsd_open(rqstp, &fh, S_IFREG, NFSD_MAY_LOCK, filp); in nlm_fopen() 39 fh_put(&fh); in nlm_fopen()
|
D | vfs.h | 117 static inline int fh_want_write(struct svc_fh *fh) in fh_want_write() argument 119 int ret = mnt_want_write(fh->fh_export->ex_path.mnt); in fh_want_write() 122 fh->fh_want_write = true; in fh_want_write() 126 static inline void fh_drop_write(struct svc_fh *fh) in fh_drop_write() argument 128 if (fh->fh_want_write) { in fh_drop_write() 129 fh->fh_want_write = false; in fh_drop_write() 130 mnt_drop_write(fh->fh_export->ex_path.mnt); in fh_drop_write() 134 static inline __be32 fh_getattr(struct svc_fh *fh, struct kstat *stat) in fh_getattr() argument 136 struct path p = {.mnt = fh->fh_export->ex_path.mnt, in fh_getattr() 137 .dentry = fh->fh_dentry}; in fh_getattr()
|
D | nfs3xdr.c | 278 p = decode_fh(p, &args->fh); in nfs3svc_decode_fhandle() 288 p = decode_fh(p, &args->fh); in nfs3svc_decode_sattrargs() 306 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_diropargs() 317 p = decode_fh(p, &args->fh); in nfs3svc_decode_accessargs() 333 p = decode_fh(p, &args->fh); in nfs3svc_decode_readargs() 364 p = decode_fh(p, &args->fh); in nfs3svc_decode_writeargs() 419 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_createargs() 442 if (!(p = decode_fh(p, &args->fh)) || in nfs3svc_decode_mkdirargs() 506 if (!(p = decode_fh(p, &args->fh)) in nfs3svc_decode_mknodargs() 541 p = decode_fh(p, &args->fh); in nfs3svc_decode_readlinkargs() [all …]
|
D | nfsxdr.c | 217 p = decode_fh(p, &args->fh); in nfssvc_decode_fhandle() 227 p = decode_fh(p, &args->fh); in nfssvc_decode_sattrargs() 239 if (!(p = decode_fh(p, &args->fh)) in nfssvc_decode_diropargs() 252 p = decode_fh(p, &args->fh); in nfssvc_decode_readargs() 286 p = decode_fh(p, &args->fh); in nfssvc_decode_writeargs() 338 if ( !(p = decode_fh(p, &args->fh)) in nfssvc_decode_createargs() 362 p = decode_fh(p, &args->fh); in nfssvc_decode_readlinkargs() 399 p = decode_fh(p, &args->fh); in nfssvc_decode_readdirargs() 423 p = encode_fattr(rqstp, p, &resp->fh, &resp->stat); in nfssvc_encode_attrstat() 431 p = encode_fh(p, &resp->fh); in nfssvc_encode_diropres() [all …]
|
/fs/gfs2/ |
D | export.c | 34 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local 46 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 47 fh[1] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh() 48 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 49 fh[3] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh() 57 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 58 fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF); in gfs2_encode_fh() 59 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 60 fh[7] = cpu_to_be32(ip->i_no_addr & 0xFFFFFFFF); in gfs2_encode_fh() 151 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local [all …]
|
/fs/nfs/ |
D | namespace.c | 143 struct nfs_fh *fh = NULL; in nfs_d_automount() local 153 fh = nfs_alloc_fhandle(); in nfs_d_automount() 155 if (fh == NULL || fattr == NULL) in nfs_d_automount() 160 mnt = server->nfs_client->rpc_ops->submount(server, path->dentry, fh, fattr); in nfs_d_automount() 171 nfs_free_fhandle(fh); in nfs_d_automount() 240 struct vfsmount *nfs_do_submount(struct dentry *dentry, struct nfs_fh *fh, in nfs_do_submount() argument 246 .fh = fh, in nfs_do_submount() 276 struct nfs_fh *fh, struct nfs_fattr *fattr) in nfs_submount() argument 282 err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); in nfs_submount() 287 return nfs_do_submount(dentry, fh, fattr, server->client->cl_auth->au_flavor); in nfs_submount()
|
D | mount_clnt.c | 126 struct nfs_fh *fh; member 133 struct nfs_fh *fh; member 148 .fh = info->fh, in nfs_mount() 346 struct nfs_fh *fh = res->fh; in decode_fhandle() local 353 fh->size = NFS2_FHSIZE; in decode_fhandle() 354 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle() 395 struct nfs_fh *fh = res->fh; in decode_fhandle3() local 411 fh->size = size; in decode_fhandle3() 412 memcpy(fh->data, p, size); in decode_fhandle3()
|
D | proc.c | 123 .fh = NFS_FH(inode), in nfs_proc_setattr() 153 .fh = NFS_FH(dir), in nfs_proc_lookup() 158 .fh = fhandle, in nfs_proc_lookup() 179 .fh = NFS_FH(inode), in nfs_proc_readlink() 211 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata() 217 data->res.fh = &data->fhandle; in nfs_alloc_createdata() 247 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs_proc_create() 294 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs_proc_mknod() 305 .fh = NFS_FH(dir), in nfs_proc_remove() 386 struct nfs_fh *fh; in nfs_proc_symlink() local [all …]
|
D | nfs3xdr.c | 440 static void encode_nfs_fh3(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_nfs_fh3() argument 444 WARN_ON_ONCE(fh->size > NFS3_FHSIZE); in encode_nfs_fh3() 445 p = xdr_reserve_space(xdr, 4 + fh->size); in encode_nfs_fh3() 446 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3() 449 static int decode_nfs_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_nfs_fh3() argument 463 fh->size = length; in decode_nfs_fh3() 464 memcpy(fh->data, p, length); in decode_nfs_fh3() 474 static void zero_nfs_fh3(struct nfs_fh *fh) in zero_nfs_fh3() argument 476 memset(fh, 0, sizeof(*fh)); in zero_nfs_fh3() 803 static int decode_post_op_fh3(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_post_op_fh3() argument [all …]
|
D | nfs2xdr.c | 194 static void encode_fhandle(struct xdr_stream *xdr, const struct nfs_fh *fh) in encode_fhandle() argument 199 memcpy(p, fh->data, NFS2_FHSIZE); in encode_fhandle() 202 static int decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in decode_fhandle() argument 209 fh->size = NFS2_FHSIZE; in decode_fhandle() 210 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle() 512 static void encode_diropargs(struct xdr_stream *xdr, const struct nfs_fh *fh, in encode_diropargs() argument 515 encode_fhandle(xdr, fh); in encode_diropargs() 536 error = decode_fhandle(xdr, result->fh); in decode_diropok() 571 const struct nfs_fh *fh) in nfs2_xdr_enc_fhandle() argument 573 encode_fhandle(xdr, fh); in nfs2_xdr_enc_fhandle() [all …]
|
D | callback_proc.c | 40 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_getattr() 42 trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL, in nfs4_callback_getattr() 64 trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status)); in nfs4_callback_getattr() 85 inode = nfs_delegation_find_inode(cps->clp, &args->fh); in nfs4_callback_recall() 87 trace_nfs4_cb_recall(cps->clp, &args->fh, NULL, in nfs4_callback_recall() 102 trace_nfs4_cb_recall(cps->clp, &args->fh, inode, in nfs4_callback_recall() 122 struct nfs_fh *fh) in get_layout_by_fh_locked() argument 133 if (nfs_compare_fh(fh, &nfsi->fh)) in get_layout_by_fh_locked() 157 struct nfs_fh *fh) in get_layout_by_fh() argument 163 lo = get_layout_by_fh_locked(clp, fh); in get_layout_by_fh()
|
D | inode.c | 250 struct nfs_fh *fh; member 264 struct nfs_fh *fh = desc->fh; in nfs_find_actor() local 271 if (nfs_compare_fh(NFS_FH(inode), fh)) in nfs_find_actor() 286 nfs_copy_fh(NFS_FH(inode), desc->fh); in nfs_init_locked() 357 nfs_fhget(struct super_block *sb, struct nfs_fh *fh, struct nfs_fattr *fattr, struct nfs4_label *la… in nfs_fhget() argument 360 .fh = fh, in nfs_fhget() 496 nfs_display_fhandle_hash(fh), in nfs_fhget() 1378 struct nfs_fh *fh; in nfs_alloc_fhandle() local 1380 fh = kmalloc(sizeof(struct nfs_fh), GFP_NOFS); in nfs_alloc_fhandle() 1381 if (fh != NULL) in nfs_alloc_fhandle() [all …]
|
D | nfs3proc.c | 125 .fh = NFS_FH(inode), in nfs3_proc_setattr() 152 .fh = NFS_FH(dir), in nfs3_proc_lookup() 157 .fh = fhandle, in nfs3_proc_lookup() 189 .fh = NFS_FH(inode), in nfs3_proc_access() 243 .fh = NFS_FH(inode), in nfs3_proc_readlink() 277 struct nfs_fh fh; member 290 data->res.fh = &data->fh; in nfs3_alloc_createdata() 306 status = nfs_instantiate(dentry, data->res.fh, data->res.fattr, NULL); in nfs3_do_create() 333 data->arg.create.fh = NFS_FH(dir); in nfs3_proc_create() 410 .fh = NFS_FH(dir), in nfs3_proc_remove() [all …]
|
/fs/ocfs2/ |
D | export.c | 187 __le32 *fh = (__force __le32 *) fh_in; in ocfs2_encode_fh() local 193 fh, len, connectable); in ocfs2_encode_fh() 212 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 213 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh() 214 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh() 220 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 221 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh() 222 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
|
/fs/ceph/ |
D | export.c | 28 struct ceph_nfs_fh *fh = (void *)rawfh; in ceph_encode_fh() local 31 int handle_length = sizeof(*fh)/4; in ceph_encode_fh() 54 fh->ino = ceph_ino(inode); in ceph_encode_fh() 116 struct ceph_nfs_fh *fh = (void *)fid->raw; in ceph_fh_to_dentry() local 121 if (fh_len < sizeof(*fh) / 4) in ceph_fh_to_dentry() 124 dout("fh_to_dentry %llx\n", fh->ino); in ceph_fh_to_dentry() 125 return __fh_to_dentry(sb, fh->ino); in ceph_fh_to_dentry()
|
/fs/fat/ |
D | nfs.c | 109 fat_encode_fh_nostale(struct inode *inode, __u32 *fh, int *lenp, in fat_encode_fh_nostale() argument 114 struct fat_fid *fid = (struct fat_fid *) fh; in fat_encode_fh_nostale() 159 struct fid *fh, int fh_len, in fat_fh_to_dentry_nostale() argument 163 struct fat_fid *fid = (struct fat_fid *)fh; in fat_fh_to_dentry_nostale() 197 struct fid *fh, int fh_len, in fat_fh_to_parent_nostale() argument 201 struct fat_fid *fid = (struct fat_fid *)fh; in fat_fh_to_parent_nostale()
|
/fs/btrfs/ |
D | export.c | 15 static int btrfs_encode_fh(struct inode *inode, u32 *fh, int *max_len, in btrfs_encode_fh() argument 18 struct btrfs_fid *fid = (struct btrfs_fid *)fh; in btrfs_encode_fh() 107 static struct dentry *btrfs_fh_to_parent(struct super_block *sb, struct fid *fh, in btrfs_fh_to_parent() argument 110 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_parent() 131 static struct dentry *btrfs_fh_to_dentry(struct super_block *sb, struct fid *fh, in btrfs_fh_to_dentry() argument 134 struct btrfs_fid *fid = (struct btrfs_fid *) fh; in btrfs_fh_to_dentry()
|
/fs/nfs/filelayout/ |
D | filelayout.c | 483 struct nfs_fh *fh; in filelayout_read_pagelist() local 507 fh = nfs4_fl_select_ds_fh(lseg, j); in filelayout_read_pagelist() 508 if (fh) in filelayout_read_pagelist() 509 hdr->args.fh = fh; in filelayout_read_pagelist() 530 struct nfs_fh *fh; in filelayout_write_pagelist() local 551 fh = nfs4_fl_select_ds_fh(lseg, j); in filelayout_write_pagelist() 552 if (fh) in filelayout_write_pagelist() 553 hdr->args.fh = fh; in filelayout_write_pagelist() 1029 struct nfs_fh *fh; in filelayout_initiate_commit() local 1045 fh = select_ds_fh_from_commit(lseg, data->ds_commit_index); in filelayout_initiate_commit() [all …]
|