Skip to content

Commit

Permalink
[PATCH] knfsd: nfsd4: remove nfs4_reclaim_init
Browse files Browse the repository at this point in the history
nfs4_reclaim_init is no longer performing any useful function.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
NeilBrown authored and Linus Torvalds committed Jun 24, 2005
1 parent ac4d8ff commit 707d4ab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
/* Globals */
static time_t lease_time = 90; /* default lease time */
static time_t user_lease_time = 90;
static u32 nfs4_reclaim_init = 0;
time_t boot_time;
static time_t grace_end = 0;
static u32 current_clientid = 1;
Expand Down Expand Up @@ -3128,7 +3127,6 @@ nfs4_release_reclaim(void)
struct nfs4_client_reclaim *crp = NULL;
int i;

BUG_ON(!nfs4_reclaim_init);
for (i = 0; i < CLIENT_HASH_SIZE; i++) {
while (!list_empty(&reclaim_str_hashtbl[i])) {
crp = list_entry(reclaim_str_hashtbl[i].next,
Expand Down Expand Up @@ -3214,7 +3212,6 @@ nfs4_state_init(void)
for (i = 0; i < CLIENT_HASH_SIZE; i++)
INIT_LIST_HEAD(&reclaim_str_hashtbl[i]);
reclaim_str_hashtbl_size = 0;
nfs4_reclaim_init = 1;
}

/* initialization to perform when the nfsd service is started: */
Expand Down

0 comments on commit 707d4ab

Please sign in to comment.