summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorBob Peterson2012-03-19 20:25:50 +0100
committerSteven Whitehouse2012-03-20 12:05:00 +0100
commit220cca2a4f5867db595135e0450381032eb54902 (patch)
treec8b0f7dd3e5a49a3cc18c981f3e6087849be98c4 /fs/gfs2/quota.c
parentGFS2: call gfs2_write_alloc_required for each chunk (diff)
downloadkernel-qcow2-linux-220cca2a4f5867db595135e0450381032eb54902.tar.gz
kernel-qcow2-linux-220cca2a4f5867db595135e0450381032eb54902.tar.xz
kernel-qcow2-linux-220cca2a4f5867db595135e0450381032eb54902.zip
GFS2: Change truncate page allocation to be GFP_NOFS
This patch changes the page allocation in gfs2_block_truncate_page and two others to GFP_NOFS to avoid deadlock in low-memory conditions. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r--fs/gfs2/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index a45b21b03915..4856c66640bf 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -681,7 +681,7 @@ static int gfs2_adjust_quota(struct gfs2_inode *ip, loff_t loc,
ptr = qp;
nbytes = sizeof(struct gfs2_quota);
get_a_page:
- page = grab_cache_page(mapping, index);
+ page = find_or_create_page(mapping, index, GFP_NOFS);
if (!page)
return -ENOMEM;