filecache.c (982dfdfd59b1a7bdd41dc04c8d0ad28bf1b0c263) | filecache.c (a685bc3524f3f03430c97533357a69c26896bdae) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * The NFSD open file cache. 4 * 5 * (c) 2015 - Jeff Layton <jeff.layton@primarydata.com> 6 * 7 * An nfsd_file object is a per-file collection of open state that binds 8 * together: --- 1040 unchanged lines hidden (view full) --- 1049 1050 /* Did construction of this file fail? */ 1051 if (!test_bit(NFSD_FILE_HASHED, &nf->nf_flags)) { 1052 trace_nfsd_file_cons_err(rqstp, inode, may_flags, nf); 1053 if (!open_retry) { 1054 status = nfserr_jukebox; 1055 goto construction_err; 1056 } | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * The NFSD open file cache. 4 * 5 * (c) 2015 - Jeff Layton <jeff.layton@primarydata.com> 6 * 7 * An nfsd_file object is a per-file collection of open state that binds 8 * together: --- 1040 unchanged lines hidden (view full) --- 1049 1050 /* Did construction of this file fail? */ 1051 if (!test_bit(NFSD_FILE_HASHED, &nf->nf_flags)) { 1052 trace_nfsd_file_cons_err(rqstp, inode, may_flags, nf); 1053 if (!open_retry) { 1054 status = nfserr_jukebox; 1055 goto construction_err; 1056 } |
1057 nfsd_file_put(nf); |
|
1057 open_retry = false; 1058 fh_put(fhp); 1059 goto retry; 1060 } 1061 this_cpu_inc(nfsd_file_cache_hits); 1062 1063 status = nfserrno(nfsd_open_break_lease(file_inode(nf->nf_file), may_flags)); 1064 if (status != nfs_ok) { --- 183 unchanged lines hidden --- | 1058 open_retry = false; 1059 fh_put(fhp); 1060 goto retry; 1061 } 1062 this_cpu_inc(nfsd_file_cache_hits); 1063 1064 status = nfserrno(nfsd_open_break_lease(file_inode(nf->nf_file), may_flags)); 1065 if (status != nfs_ok) { --- 183 unchanged lines hidden --- |