From 99a7e12f34b3661a0d1354eef83a0eef4df5e34c Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 5 Feb 2000 06:47:02 +0000 Subject: Merge with Linux 2.3.38. --- fs/efs/inode.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'fs/efs/inode.c') diff --git a/fs/efs/inode.c b/fs/efs/inode.c index b6a2ad3fa..7ed3db6ad 100644 --- a/fs/efs/inode.c +++ b/fs/efs/inode.c @@ -131,16 +131,10 @@ void efs_read_inode(struct inode *inode) { 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; -- cgit v1.2.3