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

@@ -225,6 +225,7 @@ int fileobj_create(int fd, struct memobj **objp, int *maxprotp)
if (!obj) {
obj_list_insert(newobj);
obj = newobj;
to_memobj(obj)->size = result.size;
to_memobj(obj)->flags |= result.flags;
to_memobj(obj)->status = MEMOBJ_READY;
if (to_memobj(obj)->flags & MF_PREFETCH) {