Lines Matching refs:nfs4_file
85 static bool check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner);
89 static void nfsd4_file_hash_remove(struct nfs4_file *fi);
586 struct nfs4_file *fp = container_of(rcu, struct nfs4_file, fi_rcu);
592 put_nfs4_file(struct nfs4_file *fi)
603 find_writeable_file_locked(struct nfs4_file *f)
616 find_writeable_file(struct nfs4_file *f)
628 find_readable_file_locked(struct nfs4_file *f)
641 find_readable_file(struct nfs4_file *f)
653 find_rw_file(struct nfs4_file *f)
665 find_any_file(struct nfs4_file *f)
682 static struct nfsd_file *find_any_file_locked(struct nfs4_file *f)
718 .key_len = sizeof_field(struct nfs4_file, fi_inode),
719 .key_offset = offsetof(struct nfs4_file, fi_inode),
720 .head_offset = offsetof(struct nfs4_file, fi_rlist),
747 nfs4_resolve_deny_conflicts_locked(struct nfs4_file *fp, bool new_stp,
782 __nfs4_file_get_access(struct nfs4_file *fp, u32 access)
793 nfs4_file_get_access(struct nfs4_file *fp, u32 access)
809 static __be32 nfs4_file_check_deny(struct nfs4_file *fp, u32 deny)
828 static void __nfs4_file_put_access(struct nfs4_file *fp, int oflag)
847 static void nfs4_file_put_access(struct nfs4_file *fp, u32 access)
880 struct nfs4_file *fp = co->co_file;
896 struct nfs4_file *fp;
912 find_or_hash_clnt_odstate(struct nfs4_file *fp, struct nfs4_clnt_odstate *new)
1158 alloc_init_deleg(struct nfs4_client *clp, struct nfs4_file *fp,
1201 struct nfs4_file *fp = s->sc_file;
1230 static void put_deleg_file(struct nfs4_file *fp)
1245 struct nfs4_file *fp = dp->dl_stid.sc_file;
1269 * @fp: a pointer to the nfs4_file we're granting a delegation on
1276 nfs4_delegation_exists(struct nfs4_client *clp, struct nfs4_file *fp)
1296 * @fp: a pointer to the nfs4_file we're granting a delegation on
1302 * nfs4_client for this nfs4_file. Delegation is not hashed.
1307 hash_delegation_locked(struct nfs4_delegation *dp, struct nfs4_file *fp)
1331 struct nfs4_file *fp = dp->dl_stid.sc_file;
1397 recalculate_deny_mode(struct nfs4_file *fp)
1431 struct nfs4_file *fp = stp->st_stid.sc_file;
1470 struct nfs4_file *fp = stp->st_stid.sc_file;
1575 struct nfs4_file *fp;
2616 struct nfs4_file *nf;
2660 struct nfs4_file *nf;
2698 struct nfs4_file *nf;
4310 static struct nfs4_file *nfsd4_alloc_file(void)
4317 static void nfsd4_file_init(const struct svc_fh *fh, struct nfs4_file *fp)
4366 sizeof(struct nfs4_file), 0, 0, NULL);
4520 nfsd4_find_existing_open(struct nfs4_file *fp, struct nfsd4_open *open)
4575 nfsd4_find_and_lock_existing_open(struct nfs4_file *fp, struct nfsd4_open *open)
4621 init_open_stateid(struct nfs4_file *fp, struct nfsd4_open *open)
4712 static noinline_for_stack struct nfs4_file *
4717 struct nfs4_file *fi;
4742 static noinline_for_stack struct nfs4_file *
4743 nfsd4_file_hash_insert(struct nfs4_file *new, const struct svc_fh *fhp)
4747 struct nfs4_file *ret = NULL;
4749 struct nfs4_file *fi;
4782 static noinline_for_stack void nfsd4_file_hash_remove(struct nfs4_file *fi)
4795 struct nfs4_file *fp;
4927 struct nfs4_file *fp = dp->dl_stid.sc_file;
5194 static __be32 nfs4_get_vfs_file(struct svc_rqst *rqstp, struct nfs4_file *fp,
5282 nfs4_upgrade_open(struct svc_rqst *rqstp, struct nfs4_file *fp,
5350 struct nfs4_file *fp)
5365 * nfs4_file as well:
5414 nfsd4_verify_deleg_dentry(struct nfsd4_open *open, struct nfs4_file *fp,
5459 struct nfs4_file *fp = stp->st_stid.sc_file;
5728 struct nfs4_file *fp = NULL;
5737 * If not found, create the nfs4_file struct
6014 struct nfs4_file *nf;
7334 struct nfs4_file *fp, struct inode *inode,
7380 find_or_create_lock_stateid(struct nfs4_lockowner *lo, struct nfs4_file *fi,
7420 struct nfs4_file *fp = lock_stp->st_stid.sc_file;
7437 struct nfs4_file *fi = ost->st_stid.sc_file;
7484 struct nfs4_file *fp;
7888 check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner)