'mountibility' for other fs.
*/
-volatile static inode_t ino = 0;
+static volatile inode_t ino = 0;
extern const struct v_inode_ops ramfs_inode_ops;
extern const struct v_file_ops ramfs_file_ops;
ramfs_inode_init(struct v_superblock* vsb, struct v_inode* inode)
{
inode->id = ino++;
- inode->ops = &ramfs_inode_ops;
- inode->default_fops = &ramfs_file_ops;
+ inode->ops = (struct v_inode_ops*)&ramfs_inode_ops;
+ inode->default_fops = (struct v_file_ops*)&ramfs_file_ops;
}
int
if ((rinode->flags & RAMF_SYMLINK)) {
rinode->flags &= ~RAMF_SYMLINK;
this->itype &= ~VFS_IFSYMLINK;
+
vfree(rinode->symlink);
- return;
+
+ return 0;
}
// TODO