ext2: use struct vnode instead of struct file
This commit is contained in:
parent
963a58cb53
commit
d61edcbe7b
6 changed files with 55 additions and 28 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue