public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs1-utils: master - gfs2: Use GFP_NOFS in a few places to be safe
@ 2009-07-29 15:05 Steven Whitehouse
0 siblings, 0 replies; only message in thread
From: Steven Whitehouse @ 2009-07-29 15:05 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/gfs1-utils.git?p=gfs1-utils.git;a=commitdiff;h=25accee401db0e37bb0880581cdaa998e3dbe726
Commit: 25accee401db0e37bb0880581cdaa998e3dbe726
Parent: 5ed9a27e3b4cf5dfa83b05115a8c9772006fc1a1
Author: Steven Whitehouse <swhiteho@redhat.com>
AuthorDate: Wed Jul 29 17:02:14 2009 +0100
Committer: Steven Whitehouse <swhiteho@redhat.com>
CommitterDate: Wed Jul 29 17:02:14 2009 +0100
gfs2: Use GFP_NOFS in a few places to be safe
Just a few updates to avoid any problems resulting from memory
allocation during transactions.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
---
gfs-kernel/src/gfs/acl.c | 8 ++++----
gfs-kernel/src/gfs/eattr.c | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/gfs-kernel/src/gfs/acl.c b/gfs-kernel/src/gfs/acl.c
index 3936baa..3e9d358 100644
--- a/gfs-kernel/src/gfs/acl.c
+++ b/gfs-kernel/src/gfs/acl.c
@@ -127,7 +127,7 @@ gfs_acl_get(struct gfs_inode *ip, int access, struct posix_acl **acl)
if (!GFS_EA_DATA_LEN(el.el_ea))
goto out;
- er.er_data = kmalloc(GFS_EA_DATA_LEN(el.el_ea), GFP_KERNEL);
+ er.er_data = kmalloc(GFS_EA_DATA_LEN(el.el_ea), GFP_NOFS);
error = -ENOMEM;
if (!er.er_data)
goto out;
@@ -214,7 +214,7 @@ gfs_acl_new_prep(struct gfs_inode *dip,
}
{
- struct posix_acl *clone = posix_acl_clone(acl, GFP_KERNEL);
+ struct posix_acl *clone = posix_acl_clone(acl, GFP_NOFS);
error = -ENOMEM;
if (!clone)
goto out;
@@ -250,7 +250,7 @@ gfs_acl_new_prep(struct gfs_inode *dip,
b *= 2;
b++;
- d = kmalloc(s, GFP_KERNEL);
+ d = kmalloc(s, GFP_NOFS);
error = -ENOMEM;
if (!d)
goto out;
@@ -355,7 +355,7 @@ gfs_acl_chmod(struct gfs_inode *ip, struct iattr *attr)
if (!GFS_EA_DATA_LEN(el.el_ea))
goto simple;
- er.er_data = kmalloc(GFS_EA_DATA_LEN(el.el_ea), GFP_KERNEL);
+ er.er_data = kmalloc(GFS_EA_DATA_LEN(el.el_ea), GFP_NOFS);
error = -ENOMEM;
if (!er.er_data)
goto out;
diff --git a/gfs-kernel/src/gfs/eattr.c b/gfs-kernel/src/gfs/eattr.c
index 062b682..0558300 100644
--- a/gfs-kernel/src/gfs/eattr.c
+++ b/gfs-kernel/src/gfs/eattr.c
@@ -596,7 +596,7 @@ ea_get_unstuffed(struct gfs_inode *ip, struct gfs_ea_header *ea,
unsigned int x;
int error = 0;
- bh = kmalloc(nptrs * sizeof(struct buffer_head *), GFP_KERNEL);
+ bh = kmalloc(nptrs * sizeof(struct buffer_head *), GFP_NOFS);
if (!bh)
return -ENOMEM;
@@ -1621,7 +1621,7 @@ ea_acl_chmod_unstuffed(struct gfs_inode *ip,
unsigned int x;
int error;
- bh = kmalloc(nptrs * sizeof(struct buffer_head *), GFP_KERNEL);
+ bh = kmalloc(nptrs * sizeof(struct buffer_head *), GFP_NOFS);
if (!bh)
return -ENOMEM;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-29 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-29 15:05 gfs1-utils: master - gfs2: Use GFP_NOFS in a few places to be safe Steven Whitehouse
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).