patch-2.3.36 linux/fs/devpts/inode.c

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

diff -u --recursive --new-file v2.3.35/linux/fs/devpts/inode.c linux/fs/devpts/inode.c
@@ -284,10 +284,8 @@
 	if ( ino >= sbi->max_ptys )
 		return;		/* Bogus */
 	
-	inode->i_mode = S_IFCHR;
-	inode->i_rdev = MKDEV(0,0); /* Gets filled in by devpts_pty_new() */
-
-	inode->i_op = &chrdev_inode_operations;
+	/* Gets filled in by devpts_pty_new() */
+	init_special_inode(inode,S_IFCHR,0);
 
 	return;
 }

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