Skip to content

Commit

Permalink
nfsd4: move check_stateid_generation check
Browse files Browse the repository at this point in the history
No change in behavior.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
J. Bruce Fields committed Mar 18, 2009
1 parent a4455be commit 0c2a498
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2084,6 +2084,9 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
goto out;
}
stidp = &dp->dl_stateid;
status = check_stateid_generation(stateid, stidp);
if (status)
goto out;
} else { /* open or lock stateid */
stp = find_stateid(stateid, flags);
if (!stp) {
Expand All @@ -2095,10 +2098,10 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
if (!stp->st_stateowner->so_confirmed)
goto out;
stidp = &stp->st_stateid;
status = check_stateid_generation(stateid, stidp);
if (status)
goto out;
}
status = check_stateid_generation(stateid, stidp);
if (status)
goto out;
if (stp) {
status = nfs4_check_openmode(stp, flags);
if (status)
Expand Down

0 comments on commit 0c2a498

Please sign in to comment.