patch-2.3.36 linux/fs/udf/namei.c
Next file: linux/fs/ufs/namei.c
Previous file: linux/fs/udf/inode.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Jan 4 13:02:23 2000
- Orig file:
v2.3.35/linux/fs/udf/namei.c
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.3.35/linux/fs/udf/namei.c linux/fs/udf/namei.c
@@ -702,24 +702,7 @@
mark_inode_dirty(dir);
dir->i_version = ++event;
}
- if (S_ISREG(inode->i_mode))
- {
- inode->i_op = &udf_file_inode_operations;
- }
- else if (S_ISCHR(inode->i_mode))
- {
- inode->i_op = &chrdev_inode_operations;
- }
- else if (S_ISBLK(inode->i_mode))
- {
- inode->i_op = &blkdev_inode_operations;
- }
- else if (S_ISFIFO(inode->i_mode))
- {
- init_fifo(inode);
- }
- if (S_ISBLK(mode) || S_ISCHR(mode))
- inode->i_rdev = to_kdev_t(rdev);
+ init_special_inode(inode, mode, rdev);
mark_inode_dirty(inode);
if (fibh.sbh != fibh.ebh)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)