device-drivers/zram: add kernel version check

zram device attributes max_comp_streams and comp_algorithm are introduced
since kernel v3.15, and mem_limit is introduced since kernel v3.18, we
need to add these checks.

Also according to kernel-source-tree/Documentation/blockdev/zram.txt, zram
device attribute disksize value can be either in bytes, or you can use mem
suffixes. But in some old kernels, mem suffixes are not supported, for
example, in RHEL6.6GA's kernel layer, it uses strict_strtoull() to parse
disksize, which does not support mem suffixes, in some newer kernels, they
use memparse() which supports mem suffixes. So here we just use bytes to make
sure everything works correctly.

Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
Acked-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
3 files changed