The xfs warning during truncate will be fixed with a later update(Nathan is currently working on it).

next thing to do is to fixup the merging in mprotect.

In the meantime this is already mergeable in -mm if Andrew isinterested.

I'm not touching mremap at this time (i'll reistantiate the merging inmprotect first, then Hugh testcase will work as well as in mainline). Iwait comments on the truncate/mremap race fixes (they clearly partlycollides with prio-tree but part of them seems shareable). That raceisn't trivial to fix but at the same time it doesn't worry me much rightnow. I could add the semaphore, but mremap is an extreme fast path forsome workload like apache, so I'm not going to risk ascalability-slowdown in there with an obviously safe patch of taking thei_shared_sem semaphore, because even if that race triggers the kernelshouldn't crash anymore.