add memobj_has_pager()

This commit is contained in:
NAKAMURA Gou
2014-07-03 12:06:29 +09:00
parent d59628e131
commit 9efb5e4fc5
3 changed files with 15 additions and 3 deletions

View File

@@ -184,6 +184,7 @@ int fileobj_create(int fd, struct memobj **objp, int *maxprotp)
memset(newobj, 0, sizeof(*newobj));
newobj->memobj.ops = &fileobj_ops;
newobj->memobj.flags = MF_HAS_PAGER;
newobj->handle = result.handle;
newobj->sref = 1;
newobj->cref = 1;