summaryrefslogtreecommitdiffstats
path: root/fs/efs/inode.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-02-05 06:47:02 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-02-05 06:47:02 +0000
commit99a7e12f34b3661a0d1354eef83a0eef4df5e34c (patch)
tree3560aca9ca86792f9ab7bd87861ea143a1b3c7a3 /fs/efs/inode.c
parente73a04659c0b8cdee4dd40e58630e2cf63afb316 (diff)
Merge with Linux 2.3.38.
Diffstat (limited to 'fs/efs/inode.c')
-rw-r--r--fs/efs/inode.c10
1 files changed, 2 insertions, 8 deletions
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;