Fix for demand paging and documentation.

This commit is contained in:
Naoki Hamada
2014-07-23 10:23:02 +09:00
parent 9dd7d6283c
commit dbdaf0ed32
3 changed files with 89 additions and 13 deletions

View File

@ -1215,6 +1215,11 @@ static int writecore(ihk_os_t os, unsigned long rcoretable, int chunks) {
/* unmap the chunk */
ihk_device_unmap_virtual(dev, pt, size);
ihk_device_unmap_memory(dev, phys, size);
if (ret != size) {
dprintk("core file write failed(%d).\n", ret);
error = PTR_ERR(file);
break;
}
} else {
/* We skip if the physical address is NULL
and make the core file sparse. */
@ -1229,11 +1234,6 @@ static int writecore(ihk_os_t os, unsigned long rcoretable, int chunks) {
break;
}
}
if (ret != size) {
dprintk("core file write failed(%d).\n", ret);
error = PTR_ERR(file);
break;
}
}
/* unmap the chunk table */
ihk_device_unmap_virtual(dev, coretable, tablesize);