Merge "idle-maint: don't need to change discard_granularity" am: 444a24558d
am: a970ff8448

Change-Id: I2be93b1bf2e1cd81b54ec9f197043ae8156003df
diff --git a/IdleMaint.cpp b/IdleMaint.cpp
index 3ccb806..a2d0f91 100644
--- a/IdleMaint.cpp
+++ b/IdleMaint.cpp
@@ -236,9 +236,6 @@
 static int startGc(const std::list<std::string>& paths) {
     for (const auto& path : paths) {
         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")) {
             PLOG(WARNING) << "Start GC failed on " << path;
         }
@@ -252,9 +249,6 @@
         if (!WriteStringToFile("0", path + "/gc_urgent")) {
             PLOG(WARNING) << "Stop GC failed on " << path;
         }
-        if (!WriteStringToFile("16", path + "/discard_granularity")) {
-            PLOG(WARNING) << "Set discard gralunarity failed on" << path;
-        }
     }
     return android::OK;
 }