[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191101114054.50225-1-maowenan@huawei.com>
Date: Fri, 1 Nov 2019 19:40:54 +0800
From: Mao Wenan <maowenan@...wei.com>
To: <bfields@...hat.com>, <chuck.lever@...cle.com>,
<trond.myklebust@...marydata.com>, <dros@...marydata.com>,
<jeff.layton@...marydata.com>, <richard.sharpe@...marydata.com>
CC: <linux-nfs@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>, Mao Wenan <maowenan@...wei.com>
Subject: [PATCH -next] nfsd: Drop LIST_HEAD where the variable it declares is never used.
The declarations were introduced with the file, but the declared
variables were not used.
Fixes: 65294c1f2c5e ("nfsd: add a new struct file caching facility to nfsd")
Signed-off-by: Mao Wenan <maowenan@...wei.com>
---
fs/nfsd/filecache.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c
index ef55e9b..32a9bf2 100644
--- a/fs/nfsd/filecache.c
+++ b/fs/nfsd/filecache.c
@@ -685,8 +685,6 @@ nfsd_file_cache_purge(struct net *net)
void
nfsd_file_cache_shutdown(void)
{
- LIST_HEAD(dispose);
-
set_bit(NFSD_FILE_SHUTDOWN, &nfsd_file_lru_flags);
lease_unregister_notifier(&nfsd_file_lease_notifier);
--
2.7.4
Powered by blists - more mailing lists