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: cluster: STABLE3 - gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0 Date: Mon, 08 Jun 2009 01:14:00 -0000 [thread overview] Message-ID: <20090608011352.13F78120328@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=285eb8c2ac20e92131a0b0209587c800c2d7aed4 Commit: 285eb8c2ac20e92131a0b0209587c800c2d7aed4 Parent: 683f77512f627e47b0c93c814c56029b6cbf2f9e 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:13:22 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:14 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=20090608011352.13F78120328@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: linkBe 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).