Lines Matching refs:nf
1119 struct nfsd_file *nf = NULL; in put_deleg_file() local
1123 swap(nf, fp->fi_deleg_file); in put_deleg_file()
1126 if (nf) in put_deleg_file()
1127 nfsd_file_put(nf); in put_deleg_file()
1133 struct nfsd_file *nf = fp->fi_deleg_file; in nfs4_unlock_deleg_lease() local
1137 vfs_setlease(nf->nf_file, F_UNLCK, NULL, (void **)&dp); in nfs4_unlock_deleg_lease()
1384 struct nfsd_file *nf; in nfs4_free_lock_stateid() local
1386 nf = find_any_file(stp->st_stid.sc_file); in nfs4_free_lock_stateid()
1387 if (nf) { in nfs4_free_lock_stateid()
1388 get_file(nf->nf_file); in nfs4_free_lock_stateid()
1389 filp_close(nf->nf_file, (fl_owner_t)lo); in nfs4_free_lock_stateid()
1390 nfsd_file_put(nf); in nfs4_free_lock_stateid()
2492 struct nfs4_file *nf; in nfs4_show_open() local
2501 nf = st->sc_file; in nfs4_show_open()
2502 file = find_any_file(nf); in nfs4_show_open()
2534 struct nfs4_file *nf; in nfs4_show_lock() local
2540 nf = st->sc_file; in nfs4_show_lock()
2541 file = find_any_file(nf); in nfs4_show_lock()
2571 struct nfs4_file *nf; in nfs4_show_deleg() local
2575 nf = st->sc_file; in nfs4_show_deleg()
2576 file = find_deleg_file(nf); in nfs4_show_deleg()
4924 struct nfsd_file *nf = NULL; in nfs4_get_vfs_file() local
4960 status = nfsd_file_acquire(rqstp, cur_fh, access, &nf); in nfs4_get_vfs_file()
4965 fp->fi_fds[oflag] = nf; in nfs4_get_vfs_file()
4966 nf = NULL; in nfs4_get_vfs_file()
4970 if (nf) in nfs4_get_vfs_file()
4971 nfsd_file_put(nf); in nfs4_get_vfs_file()
5114 struct nfsd_file *nf; in nfs4_set_delegation() local
5125 nf = find_readable_file(fp); in nfs4_set_delegation()
5126 if (!nf) { in nfs4_set_delegation()
5139 fp->fi_deleg_file = nf; in nfs4_set_delegation()
5143 nf = NULL; in nfs4_set_delegation()
5148 if (nf) in nfs4_set_delegation()
5149 nfsd_file_put(nf); in nfs4_set_delegation()
5919 struct nfsd_file *nf; in nfs4_check_file() local
5922 nf = nfs4_find_file(s, flags); in nfs4_check_file()
5923 if (nf) { in nfs4_check_file()
5927 nfsd_file_put(nf); in nfs4_check_file()
5931 status = nfsd_file_acquire(rqstp, fhp, acc, &nf); in nfs4_check_file()
5935 *nfp = nf; in nfs4_check_file()
6835 struct nfsd_file *nf = NULL; in nfsd4_lock() local
6919 nf = find_readable_file_locked(fp); in nfsd4_lock()
6920 if (nf) in nfsd4_lock()
6932 nf = find_writeable_file_locked(fp); in nfsd4_lock()
6933 if (nf) in nfsd4_lock()
6943 if (!nf) { in nfsd4_lock()
6959 file_lock->fl_file = nf->nf_file; in nfsd4_lock()
6981 err = vfs_lock_file(nf->nf_file, F_SETLK, file_lock, conflock); in nfsd4_lock()
7016 if (nf) in nfsd4_lock()
7017 nfsd_file_put(nf); in nfsd4_lock()
7051 struct nfsd_file *nf; in nfsd_test_lock() local
7054 err = nfsd_file_acquire(rqstp, fhp, NFSD_MAY_READ, &nf); in nfsd_test_lock()
7062 lock->fl_file = nf->nf_file; in nfsd_test_lock()
7063 err = nfserrno(vfs_test_lock(nf->nf_file, lock)); in nfsd_test_lock()
7067 nfsd_file_put(nf); in nfsd_test_lock()
7154 struct nfsd_file *nf = NULL; in nfsd4_locku() local
7172 nf = find_any_file(stp->st_stid.sc_file); in nfsd4_locku()
7173 if (!nf) { in nfsd4_locku()
7187 file_lock->fl_file = nf->nf_file; in nfsd4_locku()
7196 err = vfs_lock_file(nf->nf_file, F_SETLK, file_lock, NULL); in nfsd4_locku()
7203 nfsd_file_put(nf); in nfsd4_locku()
7228 struct nfsd_file *nf = find_any_file(fp); in check_for_locks() local
7232 if (!nf) { in check_for_locks()
7238 inode = locks_inode(nf->nf_file); in check_for_locks()
7251 nfsd_file_put(nf); in check_for_locks()