patch-2.4.13 linux/fs/nfs/write.c
Next file: linux/fs/nfsd/nfsctl.c
Previous file: linux/fs/nfs/read.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Oct 11 08:12:52 2001
- Orig file:
v2.4.12/linux/fs/nfs/write.c
- Orig date:
Tue Oct 9 17:06:53 2001
diff -u --recursive --new-file v2.4.12/linux/fs/nfs/write.c linux/fs/nfs/write.c
@@ -109,7 +109,7 @@
static __inline__ struct nfs_page *nfs_page_alloc(void)
{
struct nfs_page *p;
- p = kmem_cache_alloc(nfs_page_cachep, SLAB_KERNEL);
+ p = kmem_cache_alloc(nfs_page_cachep, SLAB_NOFS);
if (p) {
memset(p, 0, sizeof(*p));
INIT_LIST_HEAD(&p->wb_hash);
@@ -127,7 +127,7 @@
static __inline__ struct nfs_write_data *nfs_writedata_alloc(void)
{
struct nfs_write_data *p;
- p = kmem_cache_alloc(nfs_wdata_cachep, SLAB_NFS);
+ p = kmem_cache_alloc(nfs_wdata_cachep, SLAB_NOFS);
if (p) {
memset(p, 0, sizeof(*p));
INIT_LIST_HEAD(&p->pages);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)