From dc7162be6faaabcc4bc1f693318124f1aecfd606 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Thu, 28 Mar 2019 06:40:12 -0700 Subject: [PATCH] idle-maint: don't need to change discard_granularity F2FS changes proper configurations along with gc_urgent, so idle-maint doesn't need to set this redundantly. Change-Id: I4a71a5d877a3bb9636e2b65132ec806edc56a8fe Signed-off-by: Jaegeuk Kim --- IdleMaint.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/IdleMaint.cpp b/IdleMaint.cpp index 3ccb806..a2d0f91 100644 --- a/IdleMaint.cpp +++ b/IdleMaint.cpp @@ -236,9 +236,6 @@ static bool waitForGc(const std::list& paths) { static int startGc(const std::list& 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 @@ static int stopGc(const std::list& paths) { 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; }