fileobj/shmobj/devobj: add file size to memobj

This commit is contained in:
Balazs Gerofi
2016-12-19 12:55:12 +09:00
parent 3e1b16f3fc
commit 9635a628a9
9 changed files with 15 additions and 5 deletions

View File

@@ -127,6 +127,7 @@ int devobj_create(int fd, size_t len, off_t off, struct memobj **objp, int *maxp
obj->memobj.ops = &devobj_ops;
obj->memobj.flags = MF_HAS_PAGER;
obj->memobj.size = len;
obj->handle = result.handle;
obj->ref = 1;
obj->pfn_pgoff = off / PAGE_SIZE;