Skip to content

Commit

Permalink
ocfs2: Force use of GFP_NOFS in ocfs2_write()
Browse files Browse the repository at this point in the history
We can otherwise recurse into the file system.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed May 2, 2007
1 parent 5fdf1e6 commit 9315f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9315f13

Please sign in to comment.