Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebe134dd authored by Yi-Yo Chiang's avatar Yi-Yo Chiang Committed by Automerger Merge Worker
Browse files

Merge "Increase the minimal remount scratch size to 64MiB for F2FS scratch"...

Merge "Increase the minimal remount scratch size to 64MiB for F2FS scratch" am: a50ffe6c am: ab62c54f

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1790267

Change-Id: I4ed8c67b936530a0fc2a3d9ff49587174cf7ec87
parents aad140b1 ab62c54f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1133,7 +1133,7 @@ static bool CreateScratchOnData(std::string* scratch_device, bool* partition_exi
        return false;
    }
    if (!images->BackingImageExists(partition_name)) {
        static constexpr uint64_t kMinimumSize = 16_MiB;
        static constexpr uint64_t kMinimumSize = 64_MiB;
        static constexpr uint64_t kMaximumSize = 2_GiB;

        uint64_t size = std::clamp(info.size / 2, kMinimumSize, kMaximumSize);