Explorar o código

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: Fabio M. Di Nitto <fdinitto@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Steven Whitehouse %!s(int64=16) %!d(string=hai) anos
pai
achega
e4fefbac6c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      fs/gfs2/ops_address.c

+ 1 - 0
fs/gfs2/ops_address.c

@@ -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))