]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
nfs: fix wrong object type in lockowner_slab
authorYanchuan Nian <ycnian@gmail.com>
Wed, 24 Oct 2012 06:44:19 +0000 (14:44 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 8 Nov 2012 00:30:57 +0000 (19:30 -0500)
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>
fs/nfsd/nfs4state.c

index 620ff8143751ff5072ebbccec7ae086447582a12..fba2996ed5111141458526b7155ad9aa9090bf32 100644 (file)
@@ -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",