fileobj_flush_page(): do not offload for files with MF_HOST_RELEASED flag set
This commit is contained in:
@ -689,6 +689,10 @@ static int fileobj_flush_page(struct memobj *memobj, uintptr_t phys,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (memobj->flags |= MF_HOST_RELEASED) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
page = phys_to_page(phys);
|
page = phys_to_page(phys);
|
||||||
if (!page) {
|
if (!page) {
|
||||||
kprintf("%s: warning: tried to flush non-existing page for phys addr: 0x%lx\n",
|
kprintf("%s: warning: tried to flush non-existing page for phys addr: 0x%lx\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user