patch-2.4.0-test3 linux/arch/sparc64/solaris/fs.c

Next file: linux/arch/sparc64/solaris/misc.c
Previous file: linux/arch/sparc64/prom/misc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/arch/sparc64/solaris/fs.c linux/arch/sparc64/solaris/fs.c
@@ -1,4 +1,4 @@
-/* $Id: fs.c,v 1.19 2000/05/09 04:48:35 davem Exp $
+/* $Id: fs.c,v 1.20 2000/07/06 01:41:30 davem Exp $
  * fs.c: fs related syscall emulation for Solaris
  *
  * Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
@@ -9,6 +9,7 @@
 
 #include <linux/types.h>
 #include <linux/sched.h>
+#include <linux/malloc.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
 #include <linux/file.h>
@@ -480,14 +481,12 @@
 	struct nameidata nd;
 	int error;
 
-	lock_kernel();
 	error = user_path_walk((const char *)A(path),&nd);
 	if (!error) {
 		struct inode * inode = nd.dentry->d_inode;
 		error = report_statvfs(inode, buf);
 		path_release(&nd);
 	}
-	unlock_kernel();
 	return error;
 }
 
@@ -499,9 +498,7 @@
 	error = -EBADF;
 	file = fget(fd);
 	if (file) {
-		lock_kernel();
 		error = report_statvfs(file->f_dentry->d_inode, buf);
-		unlock_kernel();
 		fput(file);
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)