public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Steven Whitehouse <swhiteho@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: gfs1-utils: master - gfs2: Use GFP_NOFS in a few places to be safe Date: Wed, 29 Jul 2009 15:05:00 -0000 [thread overview] Message-ID: <20090729150457.733DD12026C@lists.fedorahosted.org> (raw) 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;
reply other threads:[~2009-07-29 15:05 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=20090729150457.733DD12026C@lists.fedorahosted.org \ --to=swhiteho@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).