write.c (62ed948cb1405fe95d61d8c6445c102e0c9da0a6) write.c (266bee88699ddbde42ab303bbc426a105cc49809)
1/*
2 * linux/fs/nfs/write.c
3 *
4 * Writing file data over NFS.
5 *
6 * We do it like this: When a (user) process wishes to write data to an
7 * NFS file, a write request is allocated that contains the RPC task data
8 * plus some info on the page to be written, and added to the inode's

--- 1537 unchanged lines hidden (view full) ---

1546 nfs_commit_mempool = mempool_create_slab_pool(MIN_POOL_COMMIT,
1547 nfs_wdata_cachep);
1548 if (nfs_commit_mempool == NULL)
1549 return -ENOMEM;
1550
1551 return 0;
1552}
1553
1/*
2 * linux/fs/nfs/write.c
3 *
4 * Writing file data over NFS.
5 *
6 * We do it like this: When a (user) process wishes to write data to an
7 * NFS file, a write request is allocated that contains the RPC task data
8 * plus some info on the page to be written, and added to the inode's

--- 1537 unchanged lines hidden (view full) ---

1546 nfs_commit_mempool = mempool_create_slab_pool(MIN_POOL_COMMIT,
1547 nfs_wdata_cachep);
1548 if (nfs_commit_mempool == NULL)
1549 return -ENOMEM;
1550
1551 return 0;
1552}
1553
1554void __exit nfs_destroy_writepagecache(void)
1554void nfs_destroy_writepagecache(void)
1555{
1556 mempool_destroy(nfs_commit_mempool);
1557 mempool_destroy(nfs_wdata_mempool);
1558 if (kmem_cache_destroy(nfs_wdata_cachep))
1559 printk(KERN_INFO "nfs_write_data: not all structures were freed\n");
1560}
1561
1555{
1556 mempool_destroy(nfs_commit_mempool);
1557 mempool_destroy(nfs_wdata_mempool);
1558 if (kmem_cache_destroy(nfs_wdata_cachep))
1559 printk(KERN_INFO "nfs_write_data: not all structures were freed\n");
1560}
1561