ext2: replace struct inode with ext2_inode

This commit is contained in:
Michael Shaw 2023-10-27 22:42:50 -04:00
commit 7832f4a896
2 changed files with 2 additions and 3 deletions

View file

@ -663,7 +663,7 @@ static int ext2_open_file(struct fs *vfs, struct file *file, const char *path)
return ret;
}
memcpy(&file->inode, inode, sizeof(struct inode));
memcpy(&file->inode, inode, sizeof(struct ext2_inode));
file->size = inode->size;
file->type = inode_to_ftype[inode->mode >> 12];
file->inode_num = inode_no;