summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorYanchuan Nian <ycnian@gmail.com>2012-10-24 14:44:19 +0800
committerJ. Bruce Fields <bfields@redhat.com>2012-11-07 19:30:57 -0500
commit3c40794b2dd0f355ef4e6bf8d85af5dcd7da7ece (patch)
tree634852baaf0416b997b045d45db661404ae446ea /fs/nfsd
parent01f6c8fd949f3a25a2617e6e1579a5c974b1cabf (diff)
downloadtalos-obmc-linux-3c40794b2dd0f355ef4e6bf8d85af5dcd7da7ece.tar.gz
talos-obmc-linux-3c40794b2dd0f355ef4e6bf8d85af5dcd7da7ece.zip
nfs: fix wrong object type in lockowner_slab
The object type in the cache of lockowner_slab is wrong, and it is better to fix it. Cc: stable@vger.kernel.org Signed-off-by: Yanchuan Nian <ycnian@gmail.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 620ff8143751..fba2996ed511 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2340,7 +2340,7 @@ nfsd4_init_slabs(void)
if (openowner_slab == NULL)
goto out_nomem;
lockowner_slab = kmem_cache_create("nfsd4_lockowners",
- sizeof(struct nfs4_openowner), 0, 0, NULL);
+ sizeof(struct nfs4_lockowner), 0, 0, NULL);
if (lockowner_slab == NULL)
goto out_nomem;
file_slab = kmem_cache_create("nfsd4_files",
OpenPOWER on IntegriCloud