Finally ported KSM from 2.6.38 kernel