patch-2.3.48 linux/fs/devpts/root.c

Next file: linux/fs/efs/dir.c
Previous file: linux/fs/devpts/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/devpts/root.c linux/fs/devpts/root.c
@@ -20,14 +20,13 @@
 static struct dentry *devpts_root_lookup(struct inode *,struct dentry *);
 static int devpts_revalidate(struct dentry *, int);
 
-static struct file_operations devpts_root_operations = {
+struct file_operations devpts_root_operations = {
+	read:		generic_read_dir,
 	readdir:	devpts_root_readdir,
 };
 
 struct inode_operations devpts_root_inode_operations = {
-	&devpts_root_operations, /* file operations */
-	NULL,                   /* create */
-	devpts_root_lookup,     /* lookup */
+	lookup:		devpts_root_lookup,
 };
 
 static struct dentry_operations devpts_dentry_operations = {

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