public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL54 - gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0
@ 2009-06-08 1:10 Abhijith Das
0 siblings, 0 replies; only message in thread
From: Abhijith Das @ 2009-06-08 1:10 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8547ed2364594bf75290a4690960c3ce7959d6a6
Commit: 8547ed2364594bf75290a4690960c3ce7959d6a6
Parent: d97ab88191384c94cfa51840f6379fcc6ecaeb89
Author: Abhijith Das <adas@redhat.com>
AuthorDate: Sun Jun 7 20:01:44 2009 -0500
Committer: Abhijith Das <adas@redhat.com>
CommitterDate: Sun Jun 7 20:09:21 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 32db45c..9a70a38 100644
--- a/gfs-kernel/src/gfs/ioctl.c
+++ b/gfs-kernel/src/gfs/ioctl.c
@@ -20,6 +20,7 @@
#include <linux/buffer_head.h>
#include <asm/uaccess.h>
#include <linux/compat.h>
+#include <linux/vmalloc.h>
#include "gfs_ioctl.h"
#include "gfs.h"
@@ -67,7 +68,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;
@@ -81,7 +82,7 @@ gi_skeleton(struct gfs_inode *ip, struct gfs_ioctl *gi,
error = count + 1;
out:
- kfree(buf);
+ vfree(buf);
return error;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-08 1:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 1:10 cluster: RHEL54 - gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0 Abhijith Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).