This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
gfs1-utils: master - gfs-kernel: bz479421 - gfs_tool: page allocationfailure. order:4, mode:0xd0
- From: Abhijith Das <adas at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Mon, 8 Jun 2009 01:17:14 +0000 (UTC)
- Subject: gfs1-utils: master - gfs-kernel: bz479421 - gfs_tool: page allocationfailure. order:4, mode:0xd0
Gitweb: http://git.fedorahosted.org/git/gfs1-utils.git?p=gfs1-utils.git;a=commitdiff;h=7cfafe26d0ca3f092bcbaad1d2a7cb8ac1acca23
Commit: 7cfafe26d0ca3f092bcbaad1d2a7cb8ac1acca23
Parent: e4e24258a5fe004b86f3ccda1250dfff87076af3
Author: Abhijith Das <adas@redhat.com>
AuthorDate: Sun Jun 7 20:11:11 2009 -0500
Committer: Abhijith Das <adas@redhat.com>
CommitterDate: Sun Jun 7 20:16:39 2009 -0500
gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0
This patch changes the allocation in gi_skeleton from kmalloc to vmalloc to
allocate virtual memory.
---
gfs-kernel/src/gfs/ioctl.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs-kernel/src/gfs/ioctl.c b/gfs-kernel/src/gfs/ioctl.c
index 56e844c..b875b4a 100644
--- a/gfs-kernel/src/gfs/ioctl.c
+++ b/gfs-kernel/src/gfs/ioctl.c
@@ -8,6 +8,7 @@
#include <asm/uaccess.h>
#include <linux/compat.h>
#include <linux/cred.h>
+#include <linux/vmalloc.h>
#include "gfs_ioctl.h"
#include "gfs.h"
@@ -55,7 +56,7 @@ gi_skeleton(struct gfs_inode *ip, struct gfs_ioctl *gi,
if (size > gi->gi_size)
size = gi->gi_size;
- buf = kmalloc(size, GFP_KERNEL);
+ buf = vmalloc(size);
if (!buf)
return -ENOMEM;
@@ -69,7 +70,7 @@ gi_skeleton(struct gfs_inode *ip, struct gfs_ioctl *gi,
error = count + 1;
out:
- kfree(buf);
+ vfree(buf);
return error;
}