aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYanchuan Nian <ycnian@gmail.com>2012-11-11 20:27:37 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-25 11:59:33 -0500
commit4c1002100898d03c5c9142ffaf58351c841ab94a (patch)
treef04ca655e6d5d8967a0a924ff34dc11c9f4be028
parentd751f748b359534d78e2b2e52b59d39f0e0540aa (diff)
nfs: Fix wrong slab cache in nfs_commit_mempool
The slab cache in nfs_commit_mempool is wrong, and I think it is just a slip. I tested it on a x86-32 machine, the size of nfs_write_header is 544, and the size of nfs_commit_data is 408, so it works fine. It is also true that sizeof(struct nfs_write_header) > sizeof(struct nfs_commit_data) on other platforms in my opinoin. Just fix it. Signed-off-by: Yanchuan Nian <ycnian@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 9347ab7c9574..f710e39f6ba2 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1829,7 +1829,7 @@ int __init nfs_init_writepagecache(void)
1829 goto out_destroy_write_mempool; 1829 goto out_destroy_write_mempool;
1830 1830
1831 nfs_commit_mempool = mempool_create_slab_pool(MIN_POOL_COMMIT, 1831 nfs_commit_mempool = mempool_create_slab_pool(MIN_POOL_COMMIT,
1832 nfs_wdata_cachep); 1832 nfs_cdata_cachep);
1833 if (nfs_commit_mempool == NULL) 1833 if (nfs_commit_mempool == NULL)
1834 goto out_destroy_commit_cache; 1834 goto out_destroy_commit_cache;
1835 1835