- 08 May, 2013 1 commit
-
-
Ken Sumrall authored
bug: 8688454 Change-Id: I5540ab27d3ade2c42ee8fd0de6fbfc1d1e19e36f
-
- 02 May, 2013 2 commits
-
-
Ken Sumrall authored
Fstrim can take a while, so grab a wakelock so it finishes now, not when the user picks up the device and wakes it back up. This change does not protect against multiple calls to fstrim before the first one completes. When the first one completes, it will release the wakelock, and the device will go to sleep. However, normal usage is this will not be invoked by the framework more than once a day, so this should not be an issue. Bug: 8781133 Change-Id: I8065d1380eaf52ca8a7ca308af66fb6e86d60a66
-
Ken Sumrall authored
Fstrim can take a while, so grab a wakelock so it finishes now, not when the user picks up the device and wakes it back up. This change does not protect against multiple calls to fstrim before the first one completes. When the first one completes, it will release the wakelock, and the device will go to sleep. However, normal usage is this will not be invoked by the framework more than once a day, so this should not be an issue. Bug: 8781133 Change-Id: I8065d1380eaf52ca8a7ca308af66fb6e86d60a66
-
- 30 Apr, 2013 1 commit
-
-
Ken Sumrall authored
Change-Id: I8620ea67a774ead51bd6bd9b6e737bf3d634470b
-
- 23 Apr, 2013 1 commit
-
-
Ken Sumrall authored
Some devices can take up to a few minutes to do fstrim. If done in the same thread as the rest of the vold command listener, then vold is blocked from responding to any other commands until the trim is done. So create a thread to do the work, and return immediately. bug: 8688454 Change-Id: I780baae03ba7de2d3e805c3e9f103ec03be84c47
-
- 22 Mar, 2013 1 commit
-
-
Ken Sumrall authored
The fstrim subsystem implements the dotrim command, which goes through all the writable filesystems on the device, and invokes the FITRIM ioctl() on them. This marks all the unused blocks on the underlying flash device as unused, so the device performs better. Change-Id: I5fc8c2f60e0bc823f162d0f89580fb288ecb2160
-