- 08 Aug, 2014 1 commit
-
-
JP Abgrall authored
As it is not upstream, it doesn't belong in the external/kernel-headers ... or in bionic's cleaned up copy. It matches what is in common/android-3.10. Bug: 15593563 Change-Id: I6fa22cd823a88805ec57f973813ac69291069c7d
-
- 07 Aug, 2014 1 commit
-
-
JP Abgrall authored
Bug: 15593563 Change-Id: I2b5fbbfb694e1b87de6c14ab63f1a5f803bbbc36
-
- 29 Jul, 2014 1 commit
-
-
JP Abgrall authored
This adds an "fstrim dodtrim" command which will attempt to use the FIDTRIM ioctl() if FIDTRIM is defined in the uapi/linux/fs.h. If not, it will fail with EINVAL. If no FIDTRIM is defined, it does not affect the "fstrim dotrim". Change-Id: Icbfd621abb592b170db06f749e5eedfd1175f723
-
- 12 Feb, 2014 2 commits
-
-
Mark Salyzyn authored
(cherry picked from commit 3e971277) Change-Id: Ic1ab533f756fbd44b1f2e5ae12e2f5736ace7740
-
Mark Salyzyn authored
Change-Id: Ic1ab533f756fbd44b1f2e5ae12e2f5736ace7740
-
- 24 Jan, 2014 1 commit
-
-
Colin Cross authored
Replace MINOR(dev_t) and MAJOR(dev_t) with minor and major, which cast to int. Cast int to uintptr_t before casting to pointer Change-Id: I59375518f15d27f400fcd4f8a8dfe5ebdd8350e6
-
- 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
-