GFS2: Set GFP_NOFS when allocating page on write
From 14c09bd317ea1e2f99baca3198472e75dca2681a Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Tue, 6 Jan 2009 10:08:33 +0000
Subject: [PATCH] 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 <[email protected]>
Signed-off-by Steven Whitehouse <[email protected]>
fs/gfs2/ops_address.c +1 -0
@@ -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))
Signature · 1 line
1.6.0.3