From: Steven Whitehouse Date: Tue, 6 Jan 2009 10:08:33 +0000 (+0000) Subject: GFS2: Set GFP_NOFS when allocating page on write X-Git-Tag: v2.6.29-rc1~193^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e4fefbac6c5bcb0388d95e83801210e7d81a071b;p=linux-2.6-omap-h63xx.git GFS2: Set GFP_NOFS when allocating page on write We need to ensure that we always set GFP_NOFS in this one particular case when allocating pages for write. Reported-by: Fabio M. Di Nitto Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/ops_address.c b/fs/gfs2/ops_address.c index 6e4ea36c660..4ddab67867e 100644 --- a/fs/gfs2/ops_address.c +++ b/fs/gfs2/ops_address.c @@ -675,6 +675,7 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping, goto out_trans_fail; error = -ENOMEM; + flags |= AOP_FLAG_NOFS; page = grab_cache_page_write_begin(mapping, index, flags); *pagep = page; if (unlikely(!page))