| /fs/nfsd/ |
| A D | nfs2acl.c | 36 svc_fh *fh; in nfsacld_proc_getacl() local 40 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getacl() 100 svc_fh *fh; in nfsacld_proc_setacl() local 105 fh = fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_setacl() 129 fh_drop_write(fh); in nfsacld_proc_setacl() 142 fh_drop_write(fh); in nfsacld_proc_setacl() 158 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_getattr() 176 SVCFH_fmt(&argp->fh), in nfsacld_proc_access() 179 fh_copy(&resp->fh, &argp->fh); in nfsacld_proc_access() 301 fh_put(&resp->fh); in nfsaclsvc_release_getacl() [all …]
|
| A D | nfs3proc.c | 75 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getattr() 103 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setattr() 148 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_access() 167 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readlink() 207 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_read() 235 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_write() 496 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_remove() 512 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_rmdir() 581 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdir() 613 fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_readdirplus() [all …]
|
| A D | nfs3acl.c | 34 svc_fh *fh; in nfsd3_proc_getacl() local 36 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_getacl() 41 inode = d_inode(fh->fh_dentry); in nfsd3_proc_getacl() 92 svc_fh *fh; in nfsd3_proc_setacl() local 95 fh = fh_copy(&resp->fh, &argp->fh); in nfsd3_proc_setacl() 100 inode = d_inode(fh->fh_dentry); in nfsd3_proc_setacl() 102 error = fh_want_write(fh); in nfsd3_proc_setacl() 117 fh_drop_write(fh); in nfsd3_proc_setacl() 137 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_getaclargs() 150 if (!svcxdr_decode_nfs_fh3(xdr, &argp->fh)) in nfs3svc_decode_setaclargs() [all …]
|
| A D | nfsproc.c | 60 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_getattr() 90 fhp = fh_copy(&resp->fh, &argp->fh); in nfsd_proc_setattr() 167 &resp->fh); in nfsd_proc_lookup() 168 fh_put(&argp->fh); in nfsd_proc_lookup() 195 fh_put(&argp->fh); in nfsd_proc_readlink() 226 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_read() 259 fh_copy(&resp->fh, &argp->fh); in nfsd_proc_write() 447 fh_put(&argp->fh); in nfsd_proc_remove() 537 fh_put(&argp->fh); in nfsd_proc_mkdir() 558 fh_put(&argp->fh); in nfsd_proc_rmdir() [all …]
|
| A D | xdr3.h | 14 struct svc_fh fh; member 21 struct svc_fh fh; member 27 struct svc_fh fh; member 32 struct svc_fh fh; member 38 svc_fh fh; member 47 struct svc_fh fh; member 56 struct svc_fh fh; member 91 struct svc_fh fh; member 98 struct svc_fh fh; member 104 struct svc_fh fh; member [all …]
|
| A D | xdr.h | 12 struct svc_fh fh; member 16 struct svc_fh fh; member 21 struct svc_fh fh; member 27 struct svc_fh fh; member 33 svc_fh fh; member 40 struct svc_fh fh; member 73 struct svc_fh fh; member 84 struct svc_fh fh; member 90 struct svc_fh fh; member 102 struct svc_fh fh; member
|
| A D | lockd.c | 33 struct svc_fh fh; in nlm_fopen() local 36 fh_init(&fh,0); in nlm_fopen() 37 fh.fh_handle.fh_size = f->size; in nlm_fopen() 38 memcpy(&fh.fh_handle.fh_raw, f->data, f->size); in nlm_fopen() 39 fh.fh_export = NULL; in nlm_fopen() 52 nfserr = nfsd_open(rqstp, &fh, S_IFREG, access, filp); in nlm_fopen() 53 fh_put(&fh); in nlm_fopen()
|
| A D | vfs.h | 163 static inline int fh_want_write(struct svc_fh *fh) in fh_want_write() argument 167 if (fh->fh_want_write) in fh_want_write() 169 ret = mnt_want_write(fh->fh_export->ex_path.mnt); in fh_want_write() 171 fh->fh_want_write = true; in fh_want_write() 175 static inline void fh_drop_write(struct svc_fh *fh) in fh_drop_write() argument 177 if (fh->fh_want_write) { in fh_drop_write() 178 fh->fh_want_write = false; in fh_drop_write() 179 mnt_drop_write(fh->fh_export->ex_path.mnt); in fh_drop_write() 186 struct path p = {.mnt = fh->fh_export->ex_path.mnt, in fh_getattr() 187 .dentry = fh->fh_dentry}; in fh_getattr() [all …]
|
| A D | nfs3xdr.c | 522 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_accessargs() 535 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_readargs() 551 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_writeargs() 682 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_readdirargs() 701 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_readdirplusargs() 722 if (!svcxdr_decode_nfs_fh3(xdr, &args->fh)) in nfs3svc_decode_commitargs() 775 if (!svcxdr_encode_nfs_fh3(xdr, &resp->fh)) in nfs3svc_encode_lookupres() 987 dparent = cd->fh.fh_dentry; in compose_entry_fh() 988 exp = cd->fh.fh_export; in compose_entry_fh() 1013 rv = fh_compose(fhp, exp, dchild, &cd->fh); in compose_entry_fh() [all …]
|
| A D | nfsfh.c | 156 int data_left = fh->fh_size/4; in nfsd_set_fh_dentry() 161 if (fh->fh_size == 0) in nfsd_set_fh_dentry() 164 if (fh->fh_version != 1) in nfsd_set_fh_dentry() 169 if (fh->fh_auth_type != 0) in nfsd_set_fh_dentry() 171 len = key_len(fh->fh_fsid_type) / 4; in nfsd_set_fh_dentry() 175 u32 *fsid = fh_fsid(fh); in nfsd_set_fh_dentry() 179 fh->fh_fsid_type = FSID_ENCODE_DEV; in nfsd_set_fh_dentry() 195 fh->fh_fsid_type, fh_fsid(fh)); in nfsd_set_fh_dentry() 238 fileid_type = fh->fh_fileid_type; in nfsd_set_fh_dentry() 773 if (fh->fh_size > 64) in SVCFH_fmt() [all …]
|
| A D | nfsxdr.c | 280 return svcxdr_decode_fhandle(xdr, &args->fh); in nfssvc_decode_fhandleargs() 288 return svcxdr_decode_fhandle(xdr, &args->fh) && in nfssvc_decode_sattrargs() 306 if (!svcxdr_decode_fhandle(xdr, &args->fh)) in nfssvc_decode_readargs() 325 if (!svcxdr_decode_fhandle(xdr, &args->fh)) in nfssvc_decode_writeargs() 350 return svcxdr_decode_diropargs(xdr, &args->fh, in nfssvc_decode_createargs() 401 if (!svcxdr_decode_fhandle(xdr, &args->fh)) in nfssvc_decode_readdirargs() 432 if (!svcxdr_encode_fattr(rqstp, xdr, &resp->fh, &resp->stat)) in nfssvc_encode_attrstatres() 449 if (!svcxdr_encode_fhandle(xdr, &resp->fh)) in nfssvc_encode_diropres() 648 fh_put(&resp->fh); in nfssvc_release_attrstat() 655 fh_put(&resp->fh); in nfssvc_release_diropres() [all …]
|
| A D | localio.c | 54 struct svc_fh fh; in nfsd_open_local_fh() local 71 fh_init(&fh, NFS4_FHSIZE); in nfsd_open_local_fh() 72 fh.fh_handle.fh_size = nfs_fh->size; in nfsd_open_local_fh() 73 memcpy(fh.fh_handle.fh_raw, nfs_fh->data, nfs_fh->size); in nfsd_open_local_fh() 83 &fh, mayflags, &localio); in nfsd_open_local_fh() 87 fh_put(&fh); in nfsd_open_local_fh()
|
| /fs/gfs2/ |
| A D | export.c | 31 __be32 *fh = (__force __be32 *)p; in gfs2_encode_fh() local 43 fh[0] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 45 fh[2] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 54 fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32); in gfs2_encode_fh() 56 fh[6] = cpu_to_be32(ip->i_no_addr >> 32); in gfs2_encode_fh() 148 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_dentry() local 157 this.no_formal_ino |= be32_to_cpu(fh[1]); in gfs2_fh_to_dentry() 159 this.no_addr |= be32_to_cpu(fh[3]); in gfs2_fh_to_dentry() 170 __be32 *fh = (__force __be32 *)fid->raw; in gfs2_fh_to_parent() local 178 parent.no_formal_ino |= be32_to_cpu(fh[5]); in gfs2_fh_to_parent() [all …]
|
| /fs/overlayfs/ |
| A D | namei.c | 133 if (!fh) in ovl_get_fh() 147 return fh; in ovl_get_fh() 150 kfree(fh); in ovl_get_fh() 507 kfree(fh); in ovl_check_origin() 534 if (fh->fb.len != ofh->fb.len || memcmp(&fh->fb, &ofh->fb, fh->fb.len)) in ovl_verify_fh() 582 kfree(fh); in ovl_verify_origin_xattr() 609 kfree(fh); in ovl_index_upper() 648 if (!fh) in ovl_verify_index() 714 kfree(fh); in ovl_verify_index() 738 s = bin2hex(n, fh->buf, fh->fb.len); in ovl_get_index_name_fh() [all …]
|
| A D | export.c | 252 if (IS_ERR(fh)) in ovl_dentry_to_fid() 253 return PTR_ERR(fh); in ovl_dentry_to_fid() 255 len = OVL_FH_LEN(fh); in ovl_dentry_to_fid() 261 kfree(fh); in ovl_dentry_to_fid() 773 struct ovl_fh *fh; in ovl_fid_to_fh() local 786 if (!fh) in ovl_fid_to_fh() 791 return fh; in ovl_fid_to_fh() 804 err = PTR_ERR(fh); in ovl_fh_to_dentry() 805 if (IS_ERR(fh)) in ovl_fh_to_dentry() 822 if (!IS_ERR_OR_NULL(fh) && fh != (void *)fid) in ovl_fh_to_dentry() [all …]
|
| A D | copy_up.c | 421 struct ovl_fh *fh; in ovl_encode_real_fh() local 432 if (!fh) in ovl_encode_real_fh() 462 fh->fb.len = sizeof(fh->fb) + buflen; in ovl_encode_real_fh() 466 return fh; in ovl_encode_real_fh() 469 kfree(fh); in ovl_encode_real_fh() 495 fh ? fh->fb.len : 0, 0); in ovl_set_origin_fh() 509 if (IS_ERR(fh)) in ovl_set_upper_fh() 512 err = ovl_setxattr(ofs, index, OVL_XATTR_UPPER, fh->buf, fh->fb.len); in ovl_set_upper_fh() 514 kfree(fh); in ovl_set_upper_fh() 961 if (IS_ERR(fh)) in ovl_do_copy_up() [all …]
|
| /fs/nfs/ |
| A D | nfstrace.h | 1148 const struct nfs_fh *fh = hdr->args.fh ? 1149 hdr->args.fh : &nfsi->fh; 1191 hdr->args.fh : &nfsi->fh; 1237 hdr->args.fh : &nfsi->fh; 1284 const struct nfs_fh *fh = hdr->args.fh ? 1285 hdr->args.fh : &nfsi->fh; 1325 hdr->args.fh : &nfsi->fh; 1370 hdr->args.fh : &nfsi->fh; 1470 data->args.fh : &nfsi->fh; 1511 data->args.fh : &nfsi->fh; [all …]
|
| A D | mount_clnt.c | 126 struct nfs_fh *fh; member 145 .fh = info->fh, in nfs_mount() 279 struct nfs_fh *fh = res->fh; in decode_fhandle() local 286 fh->size = NFS2_FHSIZE; in decode_fhandle() 287 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle() 329 struct nfs_fh *fh = res->fh; in decode_fhandle3() local 345 fh->size = size; in decode_fhandle3() 346 memcpy(fh->data, p, size); in decode_fhandle3()
|
| A D | nfs3xdr.c | 421 xdr_encode_opaque(p, fh->data, fh->size); in encode_nfs_fh3() 438 fh->size = length; in decode_nfs_fh3() 439 memcpy(fh->data, p, length); in decode_nfs_fh3() 448 memset(fh, 0, sizeof(*fh)); in zero_nfs_fh3() 774 zero_nfs_fh3(fh); in decode_post_op_fh3() 789 encode_nfs_fh3(xdr, fh); in encode_diropargs3() 814 encode_nfs_fh3(xdr, fh); in nfs3_xdr_enc_getattr3args() 853 encode_nfs_fh3(xdr, args->fh); in nfs3_xdr_enc_setattr3args() 885 encode_nfs_fh3(xdr, args->fh); in encode_access3args() 1767 if (result->fh->size == 0) in decode_create3resok() [all …]
|
| A D | proc.c | 131 .fh = NFS_FH(inode), in nfs_proc_setattr() 160 .fh = NFS_FH(dir), in nfs_proc_lookup() 165 .fh = fhandle, in nfs_proc_lookup() 191 .fh = NFS_FH(inode), in nfs_proc_readlink() 223 data->arg.fh = NFS_FH(dir); in nfs_alloc_createdata() 317 .fh = NFS_FH(dir), in nfs_proc_remove() 403 struct nfs_fh *fh; in nfs_proc_symlink() local 424 fh = nfs_alloc_fhandle(); in nfs_proc_symlink() 443 nfs_free_fhandle(fh); in nfs_proc_symlink() 483 .fh = NFS_FH(dir), in nfs_proc_rmdir() [all …]
|
| A D | nfs2xdr.c | 186 memcpy(p, fh->data, NFS2_FHSIZE); in encode_fhandle() 196 fh->size = NFS2_FHSIZE; in decode_fhandle() 197 memcpy(fh->data, p, NFS2_FHSIZE); in decode_fhandle() 493 encode_fhandle(xdr, fh); in encode_diropargs() 553 const struct nfs_fh *fh = data; in nfs2_xdr_enc_fhandle() local 555 encode_fhandle(xdr, fh); in nfs2_xdr_enc_fhandle() 572 encode_fhandle(xdr, args->fh); in nfs2_xdr_enc_sattrargs() 591 encode_fhandle(xdr, args->fh); in nfs2_xdr_enc_readlinkargs() 613 encode_fhandle(xdr, args->fh); in encode_readargs() 651 encode_fhandle(xdr, args->fh); in encode_writeargs() [all …]
|
| /fs/notify/fanotify/ |
| A D | fanotify.h | 84 static inline bool fanotify_fh_has_ext_buf(struct fanotify_fh *fh) in fanotify_fh_has_ext_buf() argument 86 return (fh->flags & FANOTIFY_FH_FLAG_EXT_BUF); in fanotify_fh_has_ext_buf() 89 static inline char **fanotify_fh_ext_buf_ptr(struct fanotify_fh *fh) in fanotify_fh_ext_buf_ptr() argument 94 return (char **)ALIGN((unsigned long)(fh + 1), __alignof__(char *)); in fanotify_fh_ext_buf_ptr() 97 static inline void *fanotify_fh_ext_buf(struct fanotify_fh *fh) in fanotify_fh_ext_buf() argument 99 return *fanotify_fh_ext_buf_ptr(fh); in fanotify_fh_ext_buf() 102 static inline void *fanotify_fh_buf(struct fanotify_fh *fh) in fanotify_fh_buf() argument 104 return fanotify_fh_has_ext_buf(fh) ? fanotify_fh_ext_buf(fh) : fh + 1; in fanotify_fh_buf() 362 struct fanotify_fh *fh = fanotify_event_object_fh(event); in fanotify_event_object_fh_len() local 365 return info->file_fh_totlen ? fh->len : 0; in fanotify_event_object_fh_len() [all …]
|
| A D | fanotify.c | 49 long salt = (long)fh->type | (long)fh->len << 8; in fanotify_hash_fh() 54 return full_name_hash((void *)salt, fanotify_fh_buf(fh), fh->len); in fanotify_hash_fh() 418 void *buf = fh + 1; in fanotify_encode_fh() 421 fh->type = FILEID_ROOT; in fanotify_encode_fh() 422 fh->len = 0; in fanotify_encode_fh() 423 fh->flags = 0; in fanotify_encode_fh() 466 fh->type = type; in fanotify_encode_fh() 467 fh->len = fh_len; in fanotify_encode_fh() 475 *hash ^= fanotify_hash_fh(fh); in fanotify_encode_fh() 485 fh->type = FILEID_INVALID; in fanotify_encode_fh() [all …]
|
| /fs/ocfs2/ |
| A D | export.c | 199 __le32 *fh = (__force __le32 *) fh_in; in ocfs2_encode_fh() local 205 fh, len, connectable); in ocfs2_encode_fh() 224 fh[0] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 225 fh[1] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh() 226 fh[2] = cpu_to_le32(generation); in ocfs2_encode_fh() 232 fh[3] = cpu_to_le32((u32)(blkno >> 32)); in ocfs2_encode_fh() 233 fh[4] = cpu_to_le32((u32)(blkno & 0xffffffff)); in ocfs2_encode_fh() 234 fh[5] = cpu_to_le32(generation); in ocfs2_encode_fh()
|
| /fs/lockd/ |
| A D | xdr4.c | 53 svcxdr_decode_fhandle(struct xdr_stream *xdr, struct nfs_fh *fh) in svcxdr_decode_fhandle() argument 66 fh->size = len; in svcxdr_decode_fhandle() 67 memcpy(fh->data, p, len); in svcxdr_decode_fhandle() 68 memset(fh->data + len, 0, sizeof(fh->data) - len); in svcxdr_decode_fhandle() 80 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in svcxdr_decode_lock() 277 if (!svcxdr_decode_fhandle(xdr, &lock->fh)) in nlm4svc_decode_shareargs()
|