Home
last modified time | relevance | path

Searched refs:nf (Results 1 – 7 of 7) sorted by relevance

/fs/nfsd/
Dfilecache.c85 struct nfsd_file *nf = container_of(rcu, struct nfsd_file, nf_rcu); in nfsd_file_slab_free() local
87 put_cred(nf->nf_cred); in nfsd_file_slab_free()
88 kmem_cache_free(nfsd_file_slab, nf); in nfsd_file_slab_free()
118 nfsd_file_mark_find_or_create(struct nfsd_file *nf) in nfsd_file_mark_find_or_create() argument
123 struct inode *inode = nf->nf_inode; in nfsd_file_mark_find_or_create()
176 struct nfsd_file *nf; in nfsd_file_alloc() local
178 nf = kmem_cache_alloc(nfsd_file_slab, GFP_KERNEL); in nfsd_file_alloc()
179 if (nf) { in nfsd_file_alloc()
180 INIT_HLIST_NODE(&nf->nf_node); in nfsd_file_alloc()
181 INIT_LIST_HEAD(&nf->nf_lru); in nfsd_file_alloc()
[all …]
Dtrace.h646 TP_PROTO(struct nfsd_file *nf),
647 TP_ARGS(nf),
657 __entry->nf_hashval = nf->nf_hashval;
658 __entry->nf_inode = nf->nf_inode;
659 __entry->nf_ref = refcount_read(&nf->nf_ref);
660 __entry->nf_flags = nf->nf_flags;
661 __entry->nf_may = nf->nf_may;
662 __entry->nf_file = nf->nf_file;
675 TP_PROTO(struct nfsd_file *nf), \
676 TP_ARGS(nf))
[all …]
Dnfs4state.c1131 struct nfsd_file *nf = NULL; in put_deleg_file() local
1135 swap(nf, fp->fi_deleg_file); in put_deleg_file()
1138 if (nf) in put_deleg_file()
1139 nfsd_file_put(nf); in put_deleg_file()
1145 struct nfsd_file *nf = fp->fi_deleg_file; in nfs4_unlock_deleg_lease() local
1149 vfs_setlease(nf->nf_file, F_UNLCK, NULL, (void **)&dp); in nfs4_unlock_deleg_lease()
1397 struct nfsd_file *nf; in nfs4_free_lock_stateid() local
1399 nf = find_any_file(stp->st_stid.sc_file); in nfs4_free_lock_stateid()
1400 if (nf) { in nfs4_free_lock_stateid()
1401 get_file(nf->nf_file); in nfs4_free_lock_stateid()
[all …]
Dfilecache.h54 void nfsd_file_put(struct nfsd_file *nf);
55 struct nfsd_file *nfsd_file_get(struct nfsd_file *nf);
Dvfs.c958 nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct nfsd_file *nf, in nfsd_vfs_write() argument
963 struct file *file = nf->nf_file; in nfsd_vfs_write()
1063 struct nfsd_file *nf; in nfsd_read() local
1068 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); in nfsd_read()
1072 file = nf->nf_file; in nfsd_read()
1078 nfsd_file_put(nf); in nfsd_read()
1095 struct nfsd_file *nf; in nfsd_write() local
1100 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_WRITE, &nf); in nfsd_write()
1104 err = nfsd_vfs_write(rqstp, fhp, nf, offset, vec, in nfsd_write()
1106 nfsd_file_put(nf); in nfsd_write()
[all …]
Dnfs4proc.c1020 struct nfsd_file *nf = NULL; in nfsd4_write() local
1033 stateid, WR_STATE, &nf, NULL); in nfsd4_write()
1044 status = nfsd_vfs_write(rqstp, &cstate->current_fh, nf, in nfsd4_write()
1048 nfsd_file_put(nf); in nfsd4_write()
1799 struct nfsd_file *nf; in nfsd4_fallocate() local
1803 WR_STATE, &nf, NULL); in nfsd4_fallocate()
1809 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, nf->nf_file, in nfsd4_fallocate()
1813 nfsd_file_put(nf); in nfsd4_fallocate()
1858 struct nfsd_file *nf; in nfsd4_seek() local
1862 RD_STATE, &nf, NULL); in nfsd4_seek()
[all …]
Dvfs.h110 struct nfsd_file *nf, loff_t offset,