summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-22 22:21:54 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-22 22:21:54 +0000
commitb3b7dfb43c7c624aae804b8e777695b835153355 (patch)
tree76e6f9b8e55197af1e0773496ddb6bf470a7f11e
parent908638dc796466e02aabe6bc7830368fc190eb38 (diff)
parentbaee102002073e746756840dac1dcb6f03d3dfe5 (diff)
downloadvold-b3b7dfb43c7c624aae804b8e777695b835153355.tar.gz
Snap for 8627648 from baee102002073e746756840dac1dcb6f03d3dfe5 to tm-frc-documentsui-releaset_frc_doc_330543000t_frc_doc_330443060t_frc_doc_330443000android13-frc-documentsui-release
Change-Id: I7c98e00ef07695dbac6ff5529ddff02b8fac104d
-rw-r--r--IdleMaint.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/IdleMaint.cpp b/IdleMaint.cpp
index 2bfe3d9a..426be58f 100644
--- a/IdleMaint.cpp
+++ b/IdleMaint.cpp
@@ -450,17 +450,17 @@ int RunIdleMaint(bool needGC, const android::sp<android::os::IVoldTaskListener>&
stopGc(paths);
}
+ if (!gc_aborted) {
+ Trim(nullptr);
+ runDevGc();
+ }
+
lk.lock();
idle_maint_stat = IdleMaintStats::kStopped;
lk.unlock();
cv_stop.notify_one();
- if (!gc_aborted) {
- Trim(nullptr);
- runDevGc();
- }
-
if (listener) {
android::os::PersistableBundle extras;
listener->onFinished(0, extras);