Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4fefbac authored by Steven Whitehouse's avatar Steven Whitehouse
Browse files

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: default avatarFabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent ede6f5ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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))