Merge "idle-maint: don't need to change discard_granularity"
am: 444a24558d
Change-Id: If0679363fb8563dedb43f8bd6266c74e4869d44f
This commit is contained in:
commit
a970ff8448
1 changed files with 0 additions and 6 deletions
|
@ -236,9 +236,6 @@ static bool waitForGc(const std::list<std::string>& paths) {
|
||||||
static int startGc(const std::list<std::string>& paths) {
|
static int startGc(const std::list<std::string>& paths) {
|
||||||
for (const auto& path : paths) {
|
for (const auto& path : paths) {
|
||||||
LOG(DEBUG) << "Start GC on " << path;
|
LOG(DEBUG) << "Start GC on " << path;
|
||||||
if (!WriteStringToFile("1", path + "/discard_granularity")) {
|
|
||||||
PLOG(WARNING) << "Set discard gralunarity failed on" << path;
|
|
||||||
}
|
|
||||||
if (!WriteStringToFile("1", path + "/gc_urgent")) {
|
if (!WriteStringToFile("1", path + "/gc_urgent")) {
|
||||||
PLOG(WARNING) << "Start GC failed on " << path;
|
PLOG(WARNING) << "Start GC failed on " << path;
|
||||||
}
|
}
|
||||||
|
@ -252,9 +249,6 @@ static int stopGc(const std::list<std::string>& paths) {
|
||||||
if (!WriteStringToFile("0", path + "/gc_urgent")) {
|
if (!WriteStringToFile("0", path + "/gc_urgent")) {
|
||||||
PLOG(WARNING) << "Stop GC failed on " << path;
|
PLOG(WARNING) << "Stop GC failed on " << path;
|
||||||
}
|
}
|
||||||
if (!WriteStringToFile("16", path + "/discard_granularity")) {
|
|
||||||
PLOG(WARNING) << "Set discard gralunarity failed on" << path;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return android::OK;
|
return android::OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue