Skip to contentSkip to conversation

cluster/gfs-kernel/src/gfs Makefile lm.c mount ...

Cluster-devel [email protected] 1 participant 1 message Jul 11, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-07-11 17:29:24

Modified files:
gfs-kernel/src/gfs: Makefile lm.c mount.c super.c sys.c
Removed files:
gfs-kernel/src/gfs: locking.c

Log message:
Reverse previous decision on locking.c. Removed unwanted sysfs groups. Removed some debug code.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/Makefile.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/lm.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/mount.c.diff?cvsroot=cluster&r1=1.12&r2=1.13
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/super.c.diff?cvsroot=cluster&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/sys.c.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs-kernel/src/gfs/locking.c.diff?cvsroot=cluster&r1=1.7&r2=NONE

gfs-kernel/src/gfs/Makefile +0 -1
@@ -40,7 +40,6 @@
 	inode.o \
 	ioctl.o \
 	lm.o \
-	locking.o \
 	log.o \
 	lops.o \
 	lvb.o \
gfs-kernel/src/gfs/lm.c +4 -14
@@ -24,16 +24,6 @@
 #include "util.h"
 #include "lvb.h"
 
-int gfs_mount_lockproto(char *proto_name, char *table_name, char *host_data,
-						lm_callback_t cb, lm_fsdata_t *fsdata,
-						unsigned int min_lvb_size, int flags,
-						struct lm_lockstruct *lockstruct,
-						struct kobject *fskobj);
-
-void gfs_unmount_lockproto(struct lm_lockstruct *lockstruct);
-
-void gfs_withdraw_lockproto(struct lm_lockstruct *lockstruct);
-
 /**
  * gfs_lm_mount - mount a locking protocol
  * @sdp: the filesystem
@@ -55,7 +45,7 @@
 
 	printk("Trying to join cluster \"%s\", \"%s\"\n", proto, table);
 
-	error = gfs_mount_lockproto(proto, table, sdp->sd_args.ar_hostdata,
+	error = gfs2_mount_lockproto(proto, table, sdp->sd_args.ar_hostdata,
 				     gfs_glock_cb, sdp,
 				     GFS_MIN_LVB_SIZE, flags,
 				     &sdp->sd_lockstruct, &sdp->sd_kobj);
@@ -69,7 +59,7 @@
 	    gfs_assert_warn(sdp, sdp->sd_lockstruct.ls_ops) ||
 	    gfs_assert_warn(sdp, sdp->sd_lockstruct.ls_lvb_size >=
 				  GFS_MIN_LVB_SIZE)) {
-		gfs_unmount_lockproto(&sdp->sd_lockstruct);
+		gfs2_unmount_lockproto(&sdp->sd_lockstruct);
 		goto out;
 	}
 
@@ -100,7 +90,7 @@
 void gfs_lm_unmount(struct gfs_sbd *sdp)
 {
 	if (likely(!test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
-		gfs_unmount_lockproto(&sdp->sd_lockstruct);
+		gfs2_unmount_lockproto(&sdp->sd_lockstruct);
 }
 
 int gfs_lm_withdraw(struct gfs_sbd *sdp, char *fmt, ...)
@@ -124,7 +114,7 @@
 	   and all further io requests fail */
 
 	printk("telling LM to withdraw\n");
-	gfs_withdraw_lockproto(&sdp->sd_lockstruct);
+	gfs2_withdraw_lockproto(&sdp->sd_lockstruct);
 	printk("withdrawn\n");
 	dump_stack();
 
gfs-kernel/src/gfs/mount.c +0 -1
@@ -95,7 +95,6 @@
 			}
 			strncpy(args->ar_hostdata, y, GFS_LOCKNAME_LEN);
 			args->ar_hostdata[GFS_LOCKNAME_LEN - 1] = 0;
-			printk("Bob says: hostdata=%s\n",args->ar_hostdata);
 		}
 
 		else if (!strcmp(x, "spectator"))
gfs-kernel/src/gfs/super.c +1 -3
@@ -903,15 +903,13 @@
 {
 	struct gfs_holder rgd_gh;
 	struct gfs_rgrpd *rgd;
-	int error,i=1;
+	int error;
 
 	memset(sg, 0, sizeof(struct gfs_stat_gfs));
 
 	for (rgd = gfs_rgrpd_get_first(sdp);
 	     rgd;
 	     rgd = gfs_rgrpd_get_next(rgd)) {
-		printk("Bob says: stat_gfs_sync i=%d addr=",i++);
-		printk("%llu\n",rgd->rd_ri.ri_addr);
 		for (;;) {
 			error = gfs_glock_nq_init(rgd->rd_gl,
 						  LM_ST_SHARED,
gfs-kernel/src/gfs/sys.c +0 -264

296 lines not on this page · raw message