From: Steven Whitehouse Date: Wed, 15 Nov 2006 20:17:03 +0000 (-0500) Subject: [GFS2] Fix memory allocation in glock.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ab923031ceb95ec50ef33ccadf28663c660aa94c;p=mv-sheeva.git [GFS2] Fix memory allocation in glock.c Change from GFP_KERNEL to GFP_NOFS as this was causing a slow down when trying to push inodes from cache. Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 746347a404c..edc21c8d7fa 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -769,7 +769,7 @@ restart: } else { spin_unlock(&gl->gl_spin); - new_gh = gfs2_holder_get(gl, state, LM_FLAG_TRY, GFP_KERNEL); + new_gh = gfs2_holder_get(gl, state, LM_FLAG_TRY, GFP_NOFS); if (!new_gh) return; set_bit(HIF_DEMOTE, &new_gh->gh_iflags);