diff options
author | Mark Fasheh <mark.fasheh@oracle.com> | 2007-05-01 17:44:20 -0700 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2007-05-02 15:08:34 -0700 |
commit | 9315f130e11249457f5c3a7f74ee82a7065bd854 (patch) | |
tree | dd2a3671ec0696b52bc98c937d0465b7b8782cdb /fs/ocfs2 | |
parent | 5fdf1e677127cb460c38733b9586b772d657be43 (diff) | |
download | kernel_goldelico_gta04-9315f130e11249457f5c3a7f74ee82a7065bd854.zip kernel_goldelico_gta04-9315f130e11249457f5c3a7f74ee82a7065bd854.tar.gz kernel_goldelico_gta04-9315f130e11249457f5c3a7f74ee82a7065bd854.tar.bz2 |
ocfs2: Force use of GFP_NOFS in ocfs2_write()
We can otherwise recurse into the file system.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | fs/ocfs2/aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |