Skip to contentSkip to conversation

cluster/gfs-kernel/src/gfs glock.c

Cluster-devel [email protected] 1 participant 1 message Jun 26, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: wcheng at sourceware.org 2007-06-26 18:30:01

Modified files:
gfs-kernel/src/gfs: glock.c

Log message:

	Bugzilla 239729:
	
	Hit the mouse too soon before commit ... Hopefully this time it is all
	correct.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/glock.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.29.2.3&r2=1.29.2.4

gfs-kernel/src/gfs/glock.c +1 -2
@@ -2653,8 +2653,7 @@
 	if (!sdp->sd_tune.gt_glock_purge)
 		purge_nr = 0;
 	else
-		purge_nr = (atomic_read(&sdp->sd_glock_count) -
-			atomic_read(&sdp->sd_glock_count)) *
+		purge_nr = atomic_read(&sdp->sd_glock_count) *
 			sdp->sd_tune.gt_glock_purge / 100;
 
 	for (x = 0; x < GFS_GL_HASH_SIZE; x++) {