| /fs/nfsd/ |
| A D | nfsfh.c | 468 (fh_fsid(&fhp->fh_handle) + fhp->fh_handle.fh_size/4 - 1); in _fh_update() 469 int maxsize = (fhp->fh_maxsize - fhp->fh_handle.fh_size)/4; in _fh_update() 599 if (ref_fh == fhp) in fh_compose() 627 fh_put(fhp); in fh_compose() 652 _fh_update(fhp, fhp->fh_export, dentry); in fh_update() 676 if (fhp->fh_no_wcc || fhp->fh_pre_saved) in fh_fill_pre_attrs() 709 err = fh_getattr(fhp, &fhp->fh_post_attr); in fh_fill_post_attrs() 735 fhp->fh_pre_change = fhp->fh_post_change; in fh_fill_both_attrs() 736 fhp->fh_pre_mtime = fhp->fh_post_attr.mtime; in fh_fill_both_attrs() 737 fhp->fh_pre_ctime = fhp->fh_post_attr.ctime; in fh_fill_both_attrs() [all …]
|
| A D | vfs.c | 252 dparent = fhp->fh_dentry; in nfsd_lookup_dentry() 428 fhp->fh_export, fhp->fh_dentry, in nfsd_get_write_access() 547 dentry = fhp->fh_dentry; in nfsd_setattr() 949 fh_put(fhp); in nfsd_open() 1213 exp = fhp->fh_export; in nfsd_vfs_write() 1615 err = fh_compose(resfhp, fhp->fh_export, dchild, fhp); in nfsd_create() 1727 cerr = fh_compose(resfhp, fhp->fh_export, dnew, fhp); in nfsd_symlink() 1738 fh_drop_write(fhp); in nfsd_symlink() 2102 fh_drop_write(fhp); in nfsd_unlink() 2553 fh_drop_write(fhp); in nfsd_removexattr() [all …]
|
| A D | nfsfh.h | 132 extern enum fsid_source fsid_source(const struct svc_fh *fhp); 215 extern char * SVCFH_fmt(struct svc_fh *fhp); 244 fh_init(struct svc_fh *fhp, int maxsize) in fh_init() argument 246 memset(fhp, 0, sizeof(*fhp)); in fh_init() 247 fhp->fh_maxsize = maxsize; in fh_init() 248 return fhp; in fh_init() 293 fhp->fh_post_saved = false; in fh_clear_pre_post_attrs() 294 fhp->fh_pre_saved = false; in fh_clear_pre_post_attrs() 298 __be32 __must_check fh_fill_pre_attrs(struct svc_fh *fhp); 299 __be32 fh_fill_post_attrs(struct svc_fh *fhp); [all …]
|
| A D | nfs3xdr.c | 93 fh_init(fhp, NFS3_FHSIZE); in svcxdr_decode_nfs_fh3() 94 fhp->fh_handle.fh_size = size; in svcxdr_decode_nfs_fh3() 125 u32 size = fhp->fh_handle.fh_size; in svcxdr_encode_nfs_fh3() 144 if (!svcxdr_encode_nfs_fh3(xdr, fhp)) in svcxdr_encode_post_op_fh3() 363 switch(fsid_source(fhp)) { in svcxdr_encode_fattr3() 404 if (!fhp->fh_pre_saved) { in svcxdr_encode_pre_op_attr() 427 const struct svc_fh *fhp) in svcxdr_encode_post_op_attr() argument 459 const struct svc_fh *fhp) in svcxdr_encode_wcc_data() argument 473 if (!svcxdr_encode_fattr3(rqstp, xdr, fhp, &fhp->fh_post_attr)) in svcxdr_encode_wcc_data() 1114 fh_init(fhp, NFS3_FHSIZE); in svcxdr_encode_entry3_plus() [all …]
|
| A D | vfs.h | 101 __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp, 105 __be32 nfsd_getxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 107 __be32 nfsd_listxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 109 __be32 nfsd_removexattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 111 __be32 nfsd_setxattr(struct svc_rqst *rqstp, struct svc_fh *fhp, 117 int nfsd_open_verified(struct svc_fh *fhp, int may_flags, 119 __be32 nfsd_splice_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 123 __be32 nfsd_iter_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 128 __be32 nfsd_read(struct svc_rqst *rqstp, struct svc_fh *fhp, 131 __be32 nfsd_write(struct svc_rqst *rqstp, struct svc_fh *fhp, [all …]
|
| A D | nfsxdr.c | 66 fh_init(fhp, NFS_FHSIZE); in svcxdr_decode_fhandle() 67 memcpy(&fhp->fh_handle.fh_raw, p, NFS_FHSIZE); in svcxdr_decode_fhandle() 68 fhp->fh_handle.fh_size = NFS_FHSIZE; in svcxdr_decode_fhandle() 81 memcpy(p, &fhp->fh_handle.fh_raw, NFS_FHSIZE); in svcxdr_encode_fhandle() 125 return svcxdr_decode_fhandle(xdr, fhp) && in svcxdr_decode_diropargs() 218 struct dentry *dentry = fhp->fh_dentry; in svcxdr_encode_fattr() 245 switch (fsid_source(fhp)) { in svcxdr_encode_fattr() 247 fsid = (u32)fhp->fh_export->ex_fsid; in svcxdr_encode_fattr() 250 fsid = ((u32 *)fhp->fh_export->ex_uuid)[0]; in svcxdr_encode_fattr() 251 fsid ^= ((u32 *)fhp->fh_export->ex_uuid)[1]; in svcxdr_encode_fattr() [all …]
|
| A D | trace.h | 231 const struct svc_fh *fhp, 295 if (fhp->fh_dentry) 313 struct svc_fh *fhp, 334 struct svc_fh *fhp, \ 435 struct svc_fh *fhp, 459 struct svc_fh *fhp, \ 478 struct svc_fh *fhp, 502 struct svc_fh *fhp, \ 522 __entry->fh_hash = fhp ? knfsd_fh_hash(&fhp->fh_handle) : 0; 2564 TP_ARGS(rqstp, fhp), [all …]
|
| A D | filecache.h | 72 __be32 nfsd_file_acquire_gc(struct svc_rqst *rqstp, struct svc_fh *fhp, 74 __be32 nfsd_file_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp, 76 __be32 nfsd_file_acquire_opened(struct svc_rqst *rqstp, struct svc_fh *fhp, 80 struct auth_domain *client, struct svc_fh *fhp,
|
| A D | flexfilelayout.c | 23 nfsd4_ff_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_ff_proc_layoutget() argument 60 error = nfsd4_set_deviceid(&fl->deviceid, fhp, device_generation); in nfsd4_ff_proc_layoutget() 64 fl->fh.size = fhp->fh_handle.fh_size; in nfsd4_ff_proc_layoutget() 65 memcpy(fl->fh.data, &fhp->fh_handle.fh_raw, fl->fh.size); in nfsd4_ff_proc_layoutget()
|
| A D | filecache.c | 1076 struct svc_fh *fhp, in nfsd_file_do_acquire() argument 1090 status = fh_verify(rqstp, fhp, S_IFREG, in nfsd_file_do_acquire() 1098 inode = d_inode(fhp->fh_dentry); in nfsd_file_do_acquire() 1146 fh_put(fhp); in nfsd_file_do_acquire() 1176 ret = nfsd_open_verified(fhp, may_flags, &nf->nf_file); in nfsd_file_do_acquire() 1185 fh_put(fhp); in nfsd_file_do_acquire() 1236 fhp, may_flags, NULL, pnf, true); in nfsd_file_acquire_gc() 1261 fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire() 1293 struct auth_domain *client, struct svc_fh *fhp, in nfsd_file_acquire_local() argument 1305 fhp, may_flags, NULL, pnf, false); in nfsd_file_acquire_local() [all …]
|
| A D | nfs4layouts.c | 56 nfsd4_alloc_devid_map(const struct svc_fh *fhp) in nfsd4_alloc_devid_map() argument 58 const struct knfsd_fh *fh = &fhp->fh_handle; in nfsd4_alloc_devid_map() 71 if (fhp->fh_export->ex_devid_map) in nfsd4_alloc_devid_map() 82 fhp->fh_export->ex_devid_map = old; in nfsd4_alloc_devid_map() 89 fhp->fh_export->ex_devid_map = map; in nfsd4_alloc_devid_map() 112 nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp, in nfsd4_set_deviceid() argument 115 if (!fhp->fh_export->ex_devid_map) { in nfsd4_set_deviceid() 116 nfsd4_alloc_devid_map(fhp); in nfsd4_set_deviceid() 117 if (!fhp->fh_export->ex_devid_map) in nfsd4_set_deviceid() 121 id->fsid_idx = fhp->fh_export->ex_devid_map->idx; in nfsd4_set_deviceid()
|
| A D | nfs3proc.c | 253 nfsd3_create_file(struct svc_rqst *rqstp, struct svc_fh *fhp, in nfsd3_create_file() argument 266 trace_nfsd_vfs_create(rqstp, fhp, S_IFREG, argp->name, argp->len); in nfsd3_create_file() 273 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_EXEC); in nfsd3_create_file() 277 parent = fhp->fh_dentry; in nfsd3_create_file() 280 host_err = fh_want_write(fhp); in nfsd3_create_file() 295 status = fh_verify(rqstp, fhp, S_IFDIR, NFSD_MAY_CREATE); in nfsd3_create_file() 300 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd3_create_file() 344 status = fh_fill_pre_attrs(fhp); in nfsd3_create_file() 352 fh_fill_post_attrs(fhp); in nfsd3_create_file() 367 status = nfsd_create_setattr(rqstp, fhp, resfhp, &attrs); in nfsd3_create_file() [all …]
|
| A D | pnfs.h | 32 __be32 (*proc_layoutget)(struct inode *, const struct svc_fh *fhp, 66 int nfsd4_set_deviceid(struct nfsd4_deviceid *id, const struct svc_fh *fhp,
|
| A D | nfs4proc.c | 216 path.mnt = fhp->fh_export->ex_path.mnt; in nfsd4_vfs_create() 257 parent = fhp->fh_dentry; in nfsd4_create_file() 260 host_err = fh_want_write(fhp); in nfsd4_create_file() 283 status = fh_compose(resfhp, fhp->fh_export, child, fhp); in nfsd4_create_file() 308 status = fh_fill_both_attrs(fhp); in nfsd4_create_file() 353 status = fh_fill_pre_attrs(fhp); in nfsd4_create_file() 360 fh_fill_post_attrs(fhp); in nfsd4_create_file() 386 fh_drop_write(fhp); in nfsd4_create_file() 402 cinfo->atomic = (u32)(fhp->fh_pre_saved && fhp->fh_post_saved && !fhp->fh_no_atomic_attr); in set_change_info() 416 if (WARN_ON_ONCE(!fhp->fh_pre_saved)) in set_change_info() [all …]
|
| A D | xdr.h | 172 bool svcxdr_decode_fhandle(struct xdr_stream *xdr, struct svc_fh *fhp); 175 const struct svc_fh *fhp, const struct kstat *stat);
|
| A D | nfsproc.c | 84 struct svc_fh *fhp; in nfsd_proc_setattr() local 90 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 116 resp->status = fh_verify(rqstp, fhp, 0, NFSD_MAY_NOP); in nfsd_proc_setattr() 123 setattr_prepare(&nop_mnt_idmap, fhp->fh_dentry, iap) != 0) { in nfsd_proc_setattr() 133 resp->status = nfsd_setattr(rqstp, fhp, &attrs, NULL); in nfsd_proc_setattr()
|
| A D | xdr3.h | 309 bool svcxdr_decode_nfs_fh3(struct xdr_stream *xdr, struct svc_fh *fhp); 312 const struct svc_fh *fhp);
|
| A D | blocklayout.c | 21 nfsd4_block_proc_layoutget(struct inode *inode, const struct svc_fh *fhp, in nfsd4_block_proc_layoutget() argument 96 error = nfsd4_set_deviceid(&bex->vol_id, fhp, device_generation); in nfsd4_block_proc_layoutget()
|
| A D | nfs4xdr.c | 2936 struct svc_fh *fhp; member 3074 switch (fsid_source(args->fhp)) { in nfsd4_encode_fattr4_fsid() 3584 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr4() argument 3678 !fhp) { in nfsd4_encode_fattr4() 3687 args.fhp = tempfh; in nfsd4_encode_fattr4() 3689 args.fhp = fhp; in nfsd4_encode_fattr4() 3781 struct svc_fh *fhp, struct svc_export *exp, in nfsd4_encode_fattr_to_buf() argument 4111 struct svc_fh *fhp = getattr->ga_fhp; in nfsd4_encode_getattr() local 4115 return nfsd4_encode_fattr4(resp->rqstp, xdr, fhp, fhp->fh_export, in nfsd4_encode_getattr() 4116 fhp->fh_dentry, getattr->ga_bmval, 0); in nfsd4_encode_getattr() [all …]
|
| A D | nfs4state.c | 5225 nfsd4_file_hash_lookup(const struct svc_fh *fhp) in nfsd4_file_hash_lookup() argument 5227 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_lookup() 5235 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_lookup() 5257 struct inode *inode = d_inode(fhp->fh_dentry); in nfsd4_file_hash_insert() 5270 if (fh_match(&fi->fi_fhandle, &fhp->fh_handle)) { in nfsd4_file_hash_insert() 5279 nfsd4_file_init(fhp, new); in nfsd4_file_hash_insert() 7208 fhp->fh_export, fhp->fh_dentry, in nfs4_check_file() 7215 status = nfsd_file_acquire(rqstp, fhp, acc, &nf); in nfs4_check_file() 7366 status = nfs4_check_fh(fhp, s); in nfs4_preprocess_stateid_op() 7370 status = nfs4_check_file(rqstp, fhp, s, nfp, flags); in nfs4_preprocess_stateid_op() [all …]
|
| A D | state.h | 774 struct nfsd4_compound_state *cstate, struct svc_fh *fhp,
|
| A D | export.c | 1296 exp_pseudoroot(struct svc_rqst *rqstp, struct svc_fh *fhp) in exp_pseudoroot() argument 1304 rv = fh_compose(fhp, exp, exp->ex_path.dentry, NULL); in exp_pseudoroot()
|
| A D | xdr4.h | 934 struct svc_fh *fhp, struct svc_export *exp,
|
| /fs/freevxfs/ |
| A D | vxfs_fshead.c | 24 vxfs_dumpfsh(struct vxfs_fsh *fhp) in vxfs_dumpfsh() argument 28 printk("version: %u\n", fhp->fsh_version); in vxfs_dumpfsh() 29 printk("fsindex: %u\n", fhp->fsh_fsindex); in vxfs_dumpfsh() 31 fhp->fsh_iauino, fhp->fsh_ninodes); in vxfs_dumpfsh() 33 fhp->fsh_maxinode, fhp->fsh_lctino); in vxfs_dumpfsh() 34 printk("nau: %u\n", fhp->fsh_nau); in vxfs_dumpfsh() 36 fhp->fsh_ilistino[0], fhp->fsh_ilistino[1]); in vxfs_dumpfsh() 59 struct vxfs_fsh *fhp; in vxfs_getfsh() local 61 if (!(fhp = kmalloc(sizeof(*fhp), GFP_KERNEL))) in vxfs_getfsh() 63 memcpy(fhp, bp->b_data, sizeof(*fhp)); in vxfs_getfsh() [all …]
|
| /fs/lockd/ |
| A D | svcsubs.c | 38 u32 *fhp = (u32*)f->data; in nlm_debug_print_fh() local 42 msg, fhp[0], fhp[1], fhp[2], fhp[3], in nlm_debug_print_fh() 43 fhp[4], fhp[5], fhp[6], fhp[7]); in nlm_debug_print_fh()
|