aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-03-17 13:07:20 -0400
committerJ. Bruce Fields <bfields@redhat.com>2011-03-17 13:07:25 -0400
commitcf507b6f8ebae89c0e7bbd00abc6d8887c9035b1 (patch)
tree834a5c5bbd63aed0756d47978679d230d5dedec4 /fs/nfsd/nfs4state.c
parent9ae78bcc000168251f893b1bf92a848308187695 (diff)
parent3ec07aa9522e3d5e9d5ede7bef946756e623a0a0 (diff)
Merge create_session decoding fix into for-2.6.39
This needs a further fixup!
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index a20827804c50..fbde6f79922e 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2446,15 +2446,16 @@ nfs4_check_delegmode(struct nfs4_delegation *dp, int flags)
2446static struct nfs4_delegation * 2446static struct nfs4_delegation *
2447find_delegation_file(struct nfs4_file *fp, stateid_t *stid) 2447find_delegation_file(struct nfs4_file *fp, stateid_t *stid)
2448{ 2448{
2449 struct nfs4_delegation *dp = NULL; 2449 struct nfs4_delegation *dp;
2450 2450
2451 spin_lock(&recall_lock); 2451 spin_lock(&recall_lock);
2452 list_for_each_entry(dp, &fp->fi_delegations, dl_perfile) { 2452 list_for_each_entry(dp, &fp->fi_delegations, dl_perfile)
2453 if (dp->dl_stateid.si_stateownerid == stid->si_stateownerid) 2453 if (dp->dl_stateid.si_stateownerid == stid->si_stateownerid) {
2454 break; 2454 spin_unlock(&recall_lock);
2455 } 2455 return dp;
2456 }
2456 spin_unlock(&recall_lock); 2457 spin_unlock(&recall_lock);
2457 return dp; 2458 return NULL;
2458} 2459}
2459 2460
2460int share_access_to_flags(u32 share_access) 2461int share_access_to_flags(u32 share_access)