[CrOS]Fix GetSwapInfo to accommodate kernel zram api change.
ZRam has changed its sysfs interfaces since kernel version 3.18. (https://github.com/torvalds/linux/commit/c87d1655c29500b459fb135258a93f8309ada9c7) If file "/sys/block/zram0/mm_stat" exists, use the new interfaces, otherwise, use the old one. Bug=chromium:740438 Change-Id: Ief192baeb76824e06c78744a1a5010b3d8d682fa Reviewed-on: https://chromium-review.googlesource.com/566796Reviewed-by:Lei Zhang <thestig@chromium.org> Commit-Queue: Zhong-sheng Wu <chungsheng@google.com> Cr-Commit-Position: refs/heads/master@{#488578}
Showing
Please register or sign in to comment