patch-2.3.99-pre6 linux/include/linux/file.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/dcache.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/linux/file.h linux/include/linux/file.h
@@ -33,12 +33,12 @@
 	return file;
 }
 
-extern inline struct file * frip(unsigned int fd)
+extern inline struct file * frip(struct files_struct *files, unsigned int fd)
 {
 	struct file * file = NULL;
 
-	if (fd < current->files->max_fds)
-		file = xchg(&current->files->fd[fd], NULL);
+	if (fd < files->max_fds)
+		file = xchg(&files->fd[fd], NULL);
 	return file;
 }
 

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