Subject: afs/fs/afs main.c,1.6,1.7 kafstimod.c,1.5,1.6 dir.c,1.8,1.9

From: [email-masked]
Date: Wed, 09 Apr 2003 16:43:10 +0100

Update of /home/cvs/afs/fs/afs
In directory phoenix.infradead.org:/tmp/cvs-serv6589/fs/afs

Modified Files:
	main.c kafstimod.c dir.c 
Log Message:
upgrade to linux-2.5.67

Index: main.c
===================================================================
RCS file: /home/cvs/afs/fs/afs/main.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- main.c	4 Feb 2003 16:12:05 -0000	1.6
+++ main.c	9 Apr 2003 15:43:07 -0000	1.7
@@ -13,6 +13,7 @@
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/completion.h>
+#include <linux/syscallstub.h>
 #include <rxrpc/rxrpc.h>
 #include <rxrpc/transport.h>
 #include <rxrpc/call.h>
@@ -49,6 +50,16 @@
 
 /*****************************************************************************/
 /*
+ * AFS syscall handler
+ */
+static int afs_syscall(long cmd, va_list va)
+{
+	kenter("{%ld}",cmd);
+	return -ENOANO;
+} /* end afs_syscall() */
+
+/*****************************************************************************/
+/*
  * initialise the AFS client FS module
  */
 static int afs_init(void)
@@ -94,8 +105,15 @@
 	if (ret<0)
 		goto error_transport;
 
+	/* register the AFS syscall */
+	ret = register_afs_syscall_handler(afs_syscall,THIS_MODULE);
+	if (ret<0)
+		goto error_fs;
+
 	return ret;
 
+ error_fs:
+	afs_fs_exit();
  error_transport:
 	rxrpc_put_transport(afs_transport);
  error_kafsasyncd:
@@ -117,6 +135,7 @@
 {
 	printk(KERN_INFO "kAFS: Red Hat AFS client v0.1 unregistering.\n");
 
+	unregister_afs_syscall_handler(afs_syscall,THIS_MODULE);
 	afs_fs_exit();
 	rxrpc_put_transport(afs_transport);
 	afs_kafstimod_stop();

Index: kafstimod.c
===================================================================
RCS file: /home/cvs/afs/fs/afs/kafstimod.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- kafstimod.c	2 Mar 2003 18:56:15 -0000	1.5
+++ kafstimod.c	9 Apr 2003 15:43:07 -0000	1.6
@@ -111,7 +111,7 @@
 			timeout = timer->timo_jif;
 			jif = jiffies;
 
-			if (time_before_eq(timeout,jif))
+			if (time_before_eq((unsigned long)timeout,jif))
 				goto immediate;
 
 			else {

Index: dir.c
===================================================================
RCS file: /home/cvs/afs/fs/afs/dir.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- dir.c	16 Oct 2002 12:45:03 -0000	1.8
+++ dir.c	9 Apr 2003 15:43:07 -0000	1.9
@@ -498,9 +498,7 @@
 	_enter("%s,%x",dentry->d_name.name,flags);
 
 	/* lock down the parent dentry so we can peer at it */
-	read_lock(&dparent_lock);
-	parent = dget(dentry->d_parent);
-	read_unlock(&dparent_lock);
+	parent = dget_parent(dentry->d_parent);
 
 	dir = parent->d_inode;
 	inode = dentry->d_inode;