Skip to contentSkip to conversation

Fix memory allocation in glock.c [9/9]

GFS2 Steven Whitehouse 1 participant 1 message Nov 24, 2006 GFS2 file system

lore
Share & tools
lore
#0 lore raw
Quoted 1 line

From 70411bdbedb9a2726cacd5c36879b78037153782 Mon Sep 17 00:00:00 2001

From: Steven Whitehouse <[email protected]>
Date: Wed, 15 Nov 2006 15:17:03 -0500
Subject: [PATCH] [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.

---
 fs/gfs2/glock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/gfs2/glock.c +1 -1
index 78fe0fa..e94e7c9 100644
@@ -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);
Signature · 1 line
1.4.1