Yep, that's what I meant the first time round. Had me worried for a moment
there...
The specific path I was refering to is:
sys_munmap->
unmap_region->
unmap_page_range->
zap_pmd_range->
zap_pte_range->
if (pte_dirty(pte))
set_page_dirty(page);
Which is the definitive way of getting the data onto disk. It's weird that
msync has to be different from fsync, or that fsync does not imply msync,
but that's the posix folks for ya, I'm sure they threw a dart blindfolded
at a list of reasons and came up with one.
-- Daniel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/