GFS2: Change truncate page allocation to be GFP_NOFS
authorBob Peterson <rpeterso@redhat.com>
Mon, 19 Mar 2012 19:25:50 +0000 (15:25 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 20 Mar 2012 11:05:00 +0000 (11:05 +0000)
commit220cca2a4f5867db595135e0450381032eb54902
treec8b0f7dd3e5a49a3cc18c981f3e6087849be98c4
parent58a7d5fb8e31279b992db4027e44b053a84b7344
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>
fs/gfs2/bmap.c
fs/gfs2/quota.c