summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-09-24 18:56:11 +0200
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-09-24 23:00:18 -0400
commit2f3169fb18f4643ac9a6a097a6a6c71f0b2cef75 (patch)
treef525f300ce78ec08ad2d2f8b6e148dddec4c3a47 /fs/nfs
parentcd9288ffaea4359d5cfe2b8d264911506aed26a4 (diff)
downloadblackbird-op-linux-2f3169fb18f4643ac9a6a097a6a6c71f0b2cef75.tar.gz
blackbird-op-linux-2f3169fb18f4643ac9a6a097a6a6c71f0b2cef75.zip
nfs: fix duplicate proc entries
Commit 65b38851a174 ("NFS: Fix /proc/fs/nfsfs/servers and /proc/fs/nfsfs/volumes") updated the following function: static int nfs_volume_list_open(struct inode *inode, struct file *file) it used &nfs_server_list_ops instead of &nfs_volume_list_ops which means cat /proc/fs/nfsfs/volumes = /proc/fs/nfsfs/servers Signed-off-by: Fabian Frederick <fabf@skynet.be> Fixes: 65b38851a174 (NFS: Fix /proc/fs/nfsfs/servers and...) Cc: stable@vger.kernel.org # 3.4.x+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 6a4f3666e273..94088517039f 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1318,7 +1318,7 @@ static int nfs_server_list_show(struct seq_file *m, void *v)
*/
static int nfs_volume_list_open(struct inode *inode, struct file *file)
{
- return seq_open_net(inode, file, &nfs_server_list_ops,
+ return seq_open_net(inode, file, &nfs_volume_list_ops,
sizeof(struct seq_net_private));
}
OpenPOWER on IntegriCloud