Browse Source

nfsd: Remove duplicate checking of nfsd_net in nfs4_laundromat()

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Kinglong Mee 10 years ago
parent
commit
7a5e8d5b5c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      fs/nfsd/nfs4state.c

+ 0 - 2
fs/nfsd/nfs4state.c

@@ -4340,8 +4340,6 @@ nfs4_laundromat(struct nfsd_net *nn)
 	spin_lock(&state_lock);
 	spin_lock(&state_lock);
 	list_for_each_safe(pos, next, &nn->del_recall_lru) {
 	list_for_each_safe(pos, next, &nn->del_recall_lru) {
 		dp = list_entry (pos, struct nfs4_delegation, dl_recall_lru);
 		dp = list_entry (pos, struct nfs4_delegation, dl_recall_lru);
-		if (net_generic(dp->dl_stid.sc_client->net, nfsd_net_id) != nn)
-			continue;
 		if (time_after((unsigned long)dp->dl_time, (unsigned long)cutoff)) {
 		if (time_after((unsigned long)dp->dl_time, (unsigned long)cutoff)) {
 			t = dp->dl_time - cutoff;
 			t = dp->dl_time - cutoff;
 			new_timeo = min(new_timeo, t);
 			new_timeo = min(new_timeo, t);