Moved vnum to priv_data of vm_file since its only related to vfs files.

This commit is contained in:
Bahadir Balban
2008-03-25 23:32:51 +00:00
parent 4b1abc60a6
commit dd3f35bbd4
4 changed files with 7 additions and 5 deletions

View File

@@ -88,7 +88,8 @@ struct page *file_page_in(struct vm_object *vm_obj, unsigned long page_offset)
l4_map(paddr, vaddr, 1, MAP_USR_RW_FLAGS, VFS_TID);
/* Syscall to vfs to read into the page. */
if ((err = vfs_read(f->vnum, page_offset, 1, vaddr)) < 0)
if ((err = vfs_read(vm_file_to_vnum(f), page_offset,
1, vaddr)) < 0)
goto out_err;
/* Unmap it from vfs */