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

@@ -179,6 +179,7 @@ int shmobj_create(struct shmid_ds *ds, struct memobj **objp)
memset(obj, 0, sizeof(*obj));
obj->memobj.ops = &shmobj_ops;
obj->memobj.size = ds->shm_segsz;
obj->ds = *ds;
obj->ds.shm_perm.seq = the_seq++;
obj->ds.shm_nattch = 1;