diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-05 06:47:02 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-05 06:47:02 +0000 |
commit | 99a7e12f34b3661a0d1354eef83a0eef4df5e34c (patch) | |
tree | 3560aca9ca86792f9ab7bd87861ea143a1b3c7a3 /fs/udf/namei.c | |
parent | e73a04659c0b8cdee4dd40e58630e2cf63afb316 (diff) |
Merge with Linux 2.3.38.
Diffstat (limited to 'fs/udf/namei.c')
-rw-r--r-- | fs/udf/namei.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index ea921eeb3..ebf344832 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -702,24 +702,7 @@ int udf_mknod(struct inode * dir, struct dentry * dentry, int mode, int rdev) 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) |