patch-2.3.48 linux/fs/sysv/dir.c

Next file: linux/fs/sysv/file.c
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/sysv/dir.c linux/fs/sysv/dir.c
@@ -19,36 +19,12 @@
 #include <linux/stat.h>
 #include <linux/string.h>
 
-#include <asm/uaccess.h>
-
-static ssize_t sysv_dir_read(struct file * filp, char * buf,
-			     size_t count, loff_t *ppos)
-{
-	return -EISDIR;
-}
-
 static int sysv_readdir(struct file *, void *, filldir_t);
 
-static struct file_operations sysv_dir_operations = {
-	read:		sysv_dir_read,
+struct file_operations sysv_dir_operations = {
+	read:		generic_read_dir,
 	readdir:	sysv_readdir,
 	fsync:		file_fsync,
-};
-
-/*
- * directories can handle most operations...
- */
-struct inode_operations sysv_dir_inode_operations = {
-	&sysv_dir_operations,	/* default directory file-ops */
-	sysv_create,		/* create */
-	sysv_lookup,		/* lookup */
-	sysv_link,		/* link */
-	sysv_unlink,		/* unlink */
-	sysv_symlink,		/* symlink */
-	sysv_mkdir,		/* mkdir */
-	sysv_rmdir,		/* rmdir */
-	sysv_mknod,		/* mknod */
-	sysv_rename,		/* rename */
 };
 
 static int sysv_readdir(struct file * filp, void * dirent, filldir_t filldir)

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