public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Abhijith Das <adas@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: gfs1-utils: master - gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0
Date: Mon, 08 Jun 2009 01:17:00 -0000 [thread overview]
Message-ID: <20090608011714.46BCA120328@lists.fedorahosted.org> (raw)
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;
}
reply other threads:[~2009-06-08 1:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090608011714.46BCA120328@lists.fedorahosted.org \
--to=adas@fedoraproject.org \
--cc=cluster-cvs-relay@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).