Zram backport, merge with upstream.

Nice stable zram and upstream fixes.

@dpavlin take a look.