Commit 7c99b975 authored by Dave Kleikamp's avatar Dave Kleikamp

No need to handle regular files in jfs_mknod

Submitted by Christoph Hellwig
parent 4e565367
...@@ -1360,12 +1360,7 @@ int jfs_mknod(struct inode *dir, struct dentry *dentry, int mode, int rdev) ...@@ -1360,12 +1360,7 @@ int jfs_mknod(struct inode *dir, struct dentry *dentry, int mode, int rdev)
goto out1; goto out1;
} }
if (S_ISREG(ip->i_mode)) { init_special_inode(ip, ip->i_mode, rdev);
ip->i_op = &jfs_file_inode_operations;
ip->i_fop = &jfs_file_operations;
ip->i_mapping->a_ops = &jfs_aops;
} else
init_special_inode(ip, ip->i_mode, rdev);
insert_inode_hash(ip); insert_inode_hash(ip);
mark_inode_dirty(ip); mark_inode_dirty(ip);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment