From: Mark Fasheh Date: Wed, 2 May 2007 00:44:20 +0000 (-0700) Subject: ocfs2: Force use of GFP_NOFS in ocfs2_write() X-Git-Tag: v3.12-rc1~30581^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9315f130e11249457f5c3a7f74ee82a7065bd854;p=kernel%2Fkernel-generic.git ocfs2: Force use of GFP_NOFS in ocfs2_write() We can otherwise recurse into the file system. Signed-off-by: Mark Fasheh --- diff --git a/fs/ocfs2/aops.c b/fs/ocfs2/aops.c index 36b3d2a..8e7cafb 100644 --- a/fs/ocfs2/aops.c +++ b/fs/ocfs2/aops.c @@ -1087,7 +1087,7 @@ static ssize_t ocfs2_write(struct file *file, u32 phys, handle_t *handle, for(i = 0; i < numpages; i++) { index = start + i; - cpages[i] = grab_cache_page(mapping, index); + cpages[i] = find_or_create_page(mapping, index, GFP_NOFS); if (!cpages[i]) { ret = -ENOMEM; mlog_errno(ret);