提交 e4fefbac 编写于 作者: S Steven Whitehouse

GFS2: Set GFP_NOFS when allocating page on write

We need to ensure that we always set GFP_NOFS in this one
particular case when allocating pages for write.
Reported-by: NFabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
上级 ede6f5ae
......@@ -675,6 +675,7 @@ static int gfs2_write_begin(struct file *file, struct address_space *mapping,
goto out_trans_fail;
error = -ENOMEM;
flags |= AOP_FLAG_NOFS;
page = grab_cache_page_write_begin(mapping, index, flags);
*pagep = page;
if (unlikely(!page))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册