Skip to content

Commit

Permalink
nfsd4: remove some useless code
Browse files Browse the repository at this point in the history
The "list_empty(&oo->oo_owner.so_stateids)" is aways true, so remove it.

Signed-off-by: fanchaoting <fanchaoting@cn.fujitsu.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
fanchaoting authored and J. Bruce Fields committed Apr 16, 2013
1 parent 3bd64a5 commit 53584f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -3919,8 +3919,7 @@ nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
* In the 4.0 case we need to keep the owners around a
* little while to handle CLOSE replay.
*/
if (list_empty(&oo->oo_owner.so_stateids))
move_to_close_lru(oo, SVC_NET(rqstp));
move_to_close_lru(oo, SVC_NET(rqstp));
}
}
out:
Expand Down

0 comments on commit 53584f6

Please sign in to comment.