mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
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>
This commit is contained in:
parent
5fdf1e6771
commit
9315f130e1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user