[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] Fix cvs HEAD kernel modules to build with 2.6.22-rc*




Hi guys,

both gnbd and gfs1 need some love for .22..

gnbd:
- invalidate_bdev changed interface with commit:
f98393a64ca1392130724c3acb4e3f325801d2b6

gfs1:
- struct kset has been cleaned up with commit:
823bccfc4002296ba88c3ad0f049e1abd8108d30
- posix_test_lock changed interface with commit:
9d6a8c5c213e34c475e72b245a8eb709258e968c

The patch in attachment takes care of the above.

Please commit or acknowledge and I will commit.

Thanks
Fabio

--
I'm going to make him an offer he can't refuse.
? make/defines.mk
Index: gfs-kernel/src/gfs/ops_file.c
===================================================================
RCS file: /cvs/cluster/cluster/gfs-kernel/src/gfs/ops_file.c,v
retrieving revision 1.33
diff -u -r1.33 ops_file.c
--- gfs-kernel/src/gfs/ops_file.c	24 May 2007 22:34:54 -0000	1.33
+++ gfs-kernel/src/gfs/ops_file.c	6 Jun 2007 07:31:38 -0000
@@ -1573,13 +1573,7 @@
 
 	if (sdp->sd_args.ar_localflocks) {
 		if (IS_GETLK(cmd)) {
-			int conflict;
-			struct file_lock tmp;
-
-			conflict = posix_test_lock(file, fl, &tmp);
-			fl->fl_type = F_UNLCK;
-			if (conflict)
-				memcpy(fl, &tmp, sizeof(struct file_lock));
+			posix_test_lock(file, fl);
 			return 0;
 		} else {
 			return posix_lock_file_wait(file, fl);
Index: gfs-kernel/src/gfs/sys.c
===================================================================
RCS file: /cvs/cluster/cluster/gfs-kernel/src/gfs/sys.c,v
retrieving revision 1.3
diff -u -r1.3 sys.c
--- gfs-kernel/src/gfs/sys.c	18 Jul 2006 20:48:20 -0000	1.3
+++ gfs-kernel/src/gfs/sys.c	6 Jun 2007 07:31:39 -0000
@@ -86,7 +86,6 @@
 };
 
 static struct kset gfs_kset = {
-	.subsys = &fs_subsys,
 	.kobj   = {.name = "gfs",},
 	.ktype  = &gfs_ktype,
 };
@@ -121,6 +120,7 @@
 {
 	gfs_sys_margs = NULL;
 	spin_lock_init(&gfs_sys_margs_lock);
+	kobj_set_kset_s(&gfs_kset, fs_subsys);
 	return kset_register(&gfs_kset);
 }
 
Index: gnbd-kernel/src/gnbd.c
===================================================================
RCS file: /cvs/cluster/cluster/gnbd-kernel/src/gnbd.c,v
retrieving revision 1.18
diff -u -r1.18 gnbd.c
--- gnbd-kernel/src/gnbd.c	5 Jan 2007 23:01:58 -0000	1.18
+++ gnbd-kernel/src/gnbd.c	6 Jun 2007 07:31:39 -0000
@@ -714,7 +714,7 @@
 		if (bdev) {
 			blk_run_queue(dev->disk->queue);
 			fsync_bdev(bdev);
-			invalidate_bdev(bdev, 0);
+			invalidate_bdev(bdev);
 		}
 		up(&dev->do_it_lock);
 		return 0;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]