fileobj_flush_page(): do not offload for files with MF_HOST_RELEASED flag set

This commit is contained in:
Balazs Gerofi
2017-06-05 22:20:25 +09:00
parent edf059888d
commit 12e7ed644f

View File

@ -689,6 +689,10 @@ static int fileobj_flush_page(struct memobj *memobj, uintptr_t phys,
return 0;
}
if (memobj->flags |= MF_HOST_RELEASED) {
return 0;
}
page = phys_to_page(phys);
if (!page) {
kprintf("%s: warning: tried to flush non-existing page for phys addr: 0x%lx\n",