1. 08 May, 2013 1 commit
  2. 02 May, 2013 2 commits
    • Ken Sumrall's avatar
      Grab a partial wakelock when doing fstrim · 8cca752b
      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
      8cca752b
    • Ken Sumrall's avatar
      Grab a partial wakelock when doing fstrim · e78cd4f3
      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
      e78cd4f3
  3. 30 Apr, 2013 1 commit
  4. 23 Apr, 2013 1 commit
    • Ken Sumrall's avatar
      vold: Perform fstrim work in a separate thread. · 743a5ec9
      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
      743a5ec9
  5. 22 Mar, 2013 1 commit
    • Ken Sumrall's avatar
      Vold: Add the fstrim subsystem to vold · b87937cd
      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
      b87937cd