device-drivers/zram: Fix sysfs related errors in zram03
zram03 tries to access few sysfs entries that doesn't exist and as a reason reports following error
zram03 0 TINFO : create a zram device with 536870912 bytes in size. zram03 0 TINFO : map this zram device into memory. zram03 0 TINFO : write all the memory. zram03 0 TINFO : /sys/block/zram0/initstate is 1 zram03 1 TBROK : safe_file_ops.c:144: Failed to open FILE '/sys/block/zram0/compr_data_size' for reading at zram03.c:181: errno=ENOENT(2): No such file or directory zram03 2 TBROK : safe_file_ops.c:144: Remaining cases broken
Replaced compr_data_size, orig_data_size, mem_used_total, num_reads, num_writes, zero_pages with mm_stat and io_stat.
Signed-off-by: Vijay Kumar [email protected]