mm: do check on shared pages only if a vma is inherited (v2)
mm: do check on shared pages only if a vma is inherited (v2)

v2: restore page contents directly into memory
Signed-off-by: Andrey Vagin <74c05afa918858348d6db8037d82fa8124870113@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

tych0/criu,gablg1/criu,fbocharov/criu,svloyso/criu,svloyso/criu,kawamuray/criu,kawamuray/criu,fbocharov/criu,eabatalov/criu,ldu4/criu,LK4D4/criu,svloyso/criu,fbocharov/criu,LK4D4/criu,tych0/criu,wtf42/criu,kawamuray/criu,gonkulator/criu,KKoukiou/criu-remote,sdgdsffdsfff/criu,biddyweb/criu,AuthenticEshkinKot/criu,fbocharov/criu,eabatalov/criu,sdgdsffdsfff/criu,wtf42/criu,efiop/criu,biddyweb/criu,eabatalov/criu,efiop/criu,marcosnils/criu,rentzsch/criu,biddyweb/criu,rentzsch/criu,fbocharov/criu,wtf42/criu,sdgdsffdsfff/criu,fbocharov/criu,rentzsch/criu,biddyweb/criu,svloyso/criu,gonkulator/criu,kawamuray/criu,ldu4/criu,gonkulator/criu,rentzsch/criu,AuthenticEshkinKot/criu,rentzsch/criu,wtf42/criu,KKoukiou/criu-remote,efiop/criu,gonkulator/criu,biddyweb/criu,ldu4/criu,AuthenticEshkinKot/criu,svloyso/criu,marcosnils/criu,kawamuray/criu,marcosnils/criu,svloyso/criu,wtf42/criu,eabatalov/criu,KKoukiou/criu-remote,gablg1/criu,efiop/criu,gablg1/criu,sdgdsffdsfff/criu,tych0/criu,gablg1/criu,AuthenticEshkinKot/criu,biddyweb/criu,rentzsch/criu,ldu4/criu,tych0/criu,LK4D4/criu,kawamuray/criu,efiop/criu,gonkulator/criu,ldu4/criu,AuthenticEshkinKot/criu,marcosnils/criu,gonkulator/criu,LK4D4/criu,eabatalov/criu,LK4D4/criu,marcosnils/criu,eabatalov/criu,marcosnils/criu,tych0/criu,KKoukiou/criu-remote,sdgdsffdsfff/criu,gablg1/criu,KKoukiou/criu-remote,tych0/criu,KKoukiou/criu-remote,wtf42/criu,AuthenticEshkinKot/criu,LK4D4/criu,sdgdsffdsfff/criu,gablg1/criu,ldu4/criu,efiop/criu