Merge "vold: switch f2fs gc_urgent_high to gc_urgent_mid" am: 119b9ae8a5
am: a1f5053ea0
Original change: https://android-review.googlesource.com/c/platform/system/vold/+/2027903 Change-Id: I2e6b56b633570fa5ecb1b402e8d7f7b12b7e9f60
This commit is contained in:
commit
7e17081e8c
1 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ static const int KBYTES_IN_SEGMENT = 2048;
|
||||||
static const int MIN_GC_URGENT_SLEEP_TIME = 500;
|
static const int MIN_GC_URGENT_SLEEP_TIME = 500;
|
||||||
static const int ONE_HOUR_IN_MS = 3600000;
|
static const int ONE_HOUR_IN_MS = 3600000;
|
||||||
static const int GC_NORMAL_MODE = 0;
|
static const int GC_NORMAL_MODE = 0;
|
||||||
static const int GC_URGENT_HIGH_MODE = 1;
|
static const int GC_URGENT_MID_MODE = 3;
|
||||||
|
|
||||||
static int32_t previousSegmentWrite = 0;
|
static int32_t previousSegmentWrite = 0;
|
||||||
|
|
||||||
|
@ -596,7 +596,7 @@ void SetGCUrgentPace(int32_t neededSegments, int32_t minSegmentThreshold, float
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!WriteStringToFile(std::to_string(GC_URGENT_HIGH_MODE), gcUrgentModePath)) {
|
if (!WriteStringToFile(std::to_string(GC_URGENT_MID_MODE), gcUrgentModePath)) {
|
||||||
PLOG(WARNING) << "Writing failed in " << gcUrgentModePath;
|
PLOG(WARNING) << "Writing failed in " << gcUrgentModePath;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue