ocfs2: use GFP_NOFS in some dlm operations
Signed-off-by: Kurt Hackel <kurt.hackel@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
This commit is contained in:
@@ -116,7 +116,7 @@ static int dlmfs_file_open(struct inode *inode,
|
||||
* doesn't make sense for LVB writes. */
|
||||
file->f_flags &= ~O_APPEND;
|
||||
|
||||
fp = kmalloc(sizeof(*fp), GFP_KERNEL);
|
||||
fp = kmalloc(sizeof(*fp), GFP_NOFS);
|
||||
if (!fp) {
|
||||
status = -ENOMEM;
|
||||
goto bail;
|
||||
@@ -196,7 +196,7 @@ static ssize_t dlmfs_file_read(struct file *filp,
|
||||
else
|
||||
readlen = count - *ppos;
|
||||
|
||||
lvb_buf = kmalloc(readlen, GFP_KERNEL);
|
||||
lvb_buf = kmalloc(readlen, GFP_NOFS);
|
||||
if (!lvb_buf)
|
||||
return -ENOMEM;
|
||||
|
||||
@@ -240,7 +240,7 @@ static ssize_t dlmfs_file_write(struct file *filp,
|
||||
else
|
||||
writelen = count - *ppos;
|
||||
|
||||
lvb_buf = kmalloc(writelen, GFP_KERNEL);
|
||||
lvb_buf = kmalloc(writelen, GFP_NOFS);
|
||||
if (!lvb_buf)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user