From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25798 invoked by alias); 8 Jun 2009 01:10:23 -0000 Received: (qmail 25792 invoked by alias); 8 Jun 2009 01:10:23 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_74,SPF_HELO_PASS X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_74,SPF_HELO_PASS X-Spam-Check-By: sourceware.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bastion2.fedora.phx.redhat.com Subject: cluster: RHEL54 - gfs-kernel: bz479421 - gfs_tool: page allocation failure. order:4, mode:0xd0 To: cluster-cvs-relay@redhat.com X-Project: Cluster Project X-Git-Module: cluster.git X-Git-Refname: refs/heads/RHEL54 X-Git-Reftype: branch X-Git-Oldrev: d97ab88191384c94cfa51840f6379fcc6ecaeb89 X-Git-Newrev: 8547ed2364594bf75290a4690960c3ce7959d6a6 From: Abhijith Das Message-Id: <20090608010955.BD82B120328@lists.fedorahosted.org> Date: Mon, 08 Jun 2009 01:10:00 -0000 X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 Mailing-List: contact cluster-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cluster-cvs-owner@sourceware.org X-SW-Source: 2009-q2/txt/msg00470.txt.bz2 Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8547ed2364594bf75290a4690960c3ce7959d6a6 Commit: 8547ed2364594bf75290a4690960c3ce7959d6a6 Parent: d97ab88191384c94cfa51840f6379fcc6ecaeb89 Author: Abhijith Das AuthorDate: Sun Jun 7 20:01:44 2009 -0500 Committer: Abhijith Das 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 #include #include +#include #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; }