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: RHEL54 - gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0
Date: Mon, 08 Jun 2009 01:10:00 -0000	[thread overview]
Message-ID: <20090608010955.BD82B120328@lists.fedorahosted.org> (raw)

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;
 }


                 reply	other threads:[~2009-06-08  1:10 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=20090608010955.BD82B120328@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).