-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup logic in KillZramBackingDevice
Since this function is used in userspace reboot, we need to be more diligent with error handling, e.g.: * If init fails to read /sys/block/zram0/backing_dev, then fail and fallback to hard reboot. * Always call swapoff. * Always reset zram. * Tear down loop device only if zram is backed by a loop device. Test: adb reboot userspace Bug: 153917129 Change-Id: I4709da1d08cf427ad9c898cfb2506b6a29f1d680 Former-commit-id: a840d405ebfbbbd18450f9a32933701dd417d3a4
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters