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

Next file: linux/fs/exec.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.35/linux/fs/efs/inode.c linux/fs/efs/inode.c
@@ -131,16 +131,10 @@
 			inode->i_op = &efs_symlink_inode_operations;
 			break;
 		case S_IFCHR:
-			inode->i_rdev = device;
-			inode->i_op = &chrdev_inode_operations; 
-			break;
 		case S_IFBLK:
-			inode->i_rdev = device;
-			inode->i_op = &blkdev_inode_operations; 
-			break;
 		case S_IFIFO:
-			init_fifo(inode);
-			break;    
+			init_special_inode(inode, inode->i_mode, device);
+			break;
 		default:
 			printk(KERN_WARNING "EFS: unsupported inode mode %o\n", inode->i_mode);
 			goto read_inode_error;

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])