Skip to contentSkip to conversation

Remove unused GL_DUMP flag [31/70]

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

lore
Share & tools
lore
#0 lore raw

From c594d8866460a2710c436839d79f334a0714a2a7 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Wed, 8 Nov 2006 09:01:13 -0500
Subject: [PATCH] [GFS2] Remove unused GL_DUMP flag

There is no way to set the GL_DUMP flag, and in any case the same thing can be done with systemtap if required for debugging, so this removes it.

---
 fs/gfs2/glock.c |    3 ---
 fs/gfs2/glock.h |    1 -
 2 files changed, 0 insertions(+), 4 deletions(-)
fs/gfs2/glock.c +0 -3
index 44633c4..746347a 100644
@@ -1244,9 +1244,6 @@ restart:
 
 	clear_bit(GLF_PREFETCH, &gl->gl_flags);
 
-	if (error == GLR_TRYFAILED && (gh->gh_flags & GL_DUMP))
-		dump_glock(gl);
-
 	return error;
 }
 
fs/gfs2/glock.h +0 -1
index 2b2a889..b985627 100644
@@ -28,7 +28,6 @@ #define GL_ATIME		0x00000200
 #define GL_NOCACHE		0x00000400
 #define GL_NOCANCEL		0x00001000
 #define GL_AOP			0x00004000
-#define GL_DUMP			0x00008000
 
 #define GLR_TRYFAILED		13
 #define GLR_CANCELED		14
Signature · 1 line
1.4.1