mm: gup: introduce FOLL_MM_SYNC and FAULT_FLAG_MM_SYNC

FOLL_MM_SYNC will provide MM coherency to readonly long term pins.

FOLL_MM_SYNC obsoletes the need for FOLL_FORCE|FOLL_WRITE.

The spec compliance of FOLL_MM_SYNC was possible thanks to Jann Horn
pointing out the mmap.2 manpage says the following about MAP_PRIVATE:
"It is unspecified whether changes made to the file after the mmap()
call are visible in the mapped region.".

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
2 files changed