ext2: use struct vnode instead of struct file

This commit is contained in:
Michael Shaw 2024-01-26 18:41:09 -05:00
commit d61edcbe7b
6 changed files with 55 additions and 28 deletions

View file

@ -44,7 +44,7 @@ pid_t elf_load_proc(char *fname)
if (!file)
return -ENOENT;
size_t size = file->vnode.size;
size_t size = file->vnode->size;
char *buf = kmalloc(size, ALLOC_KERN);
if (!buf)