Linear inviscid damping in Sobolev and Gevrey spaces. (December 2021)