diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-11-12 15:00:58 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-12 18:55:12 -0500 |
commit | 7e4f015d815d04d888d434889dd3bbb4c210511a (patch) | |
tree | d523bd2a10acf10d95f402c7a784ee32ff53fe15 /fs/nfsd | |
parent | 2216d449a97927cc105912e337d169cd4d4db548 (diff) |
nfsd: release the legacy reclaimable clients list in grace_done
The current code holds on to this list until nfsd is shut down, but it's
never touched once the grace period ends. Release that memory back into
the wild when the grace period ends.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index 80e77cc14250..b03b6aa7a6a0 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -404,6 +404,7 @@ nfsd4_recdir_purge_old(struct net *net, time_t boot_time) | |||
404 | vfs_fsync(rec_file, 0); | 404 | vfs_fsync(rec_file, 0); |
405 | mnt_drop_write_file(rec_file); | 405 | mnt_drop_write_file(rec_file); |
406 | out: | 406 | out: |
407 | nfs4_release_reclaim(); | ||
407 | if (status) | 408 | if (status) |
408 | printk("nfsd4: failed to purge old clients from recovery" | 409 | printk("nfsd4: failed to purge old clients from recovery" |
409 | " directory %s\n", rec_file->f_path.dentry->d_name.name); | 410 | " directory %s\n", rec_file->f_path.dentry->d_name.name); |