diff options
author | Daniel Zheng <zhengdaniel@google.com> | 2024-02-08 10:52:18 -0800 |
---|---|---|
committer | Daniel Zheng <zhengdaniel@google.com> | 2024-03-13 22:28:43 -0700 |
commit | da960a134122668a36ac6f740e5405e858cd3641 (patch) | |
tree | 2f3f7878124ba2fabddf06c401b831d89fef0ebe /fs_mgr | |
parent | f21e60282ecb9242947d3ba88b0cb7029c0307a1 (diff) | |
download | core-da960a134122668a36ac6f740e5405e858cd3641.tar.gz |
libsnapshot: remove temporary solution
Remove temporary estimation solution (using 4k to overestimate the cow).
With the updated estimation logic, we should be able to accurately
estimate the cow size with variable block sized compression
Bug: 322279333
Test: th
Change-Id: I199970048605a8d21d3791614ad88ca61662e1a3
Diffstat (limited to 'fs_mgr')
-rw-r--r-- | fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp index de2e52833..765da9b44 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v3.cpp @@ -214,15 +214,6 @@ bool CowWriterV3::Initialize(std::optional<uint64_t> label) { return false; } } - - // TODO: b/322279333 - // Set compression factor to 4k during estimation. - // Once COW estimator is ready to support variable - // block size, this check has to be removed. - if (IsEstimating()) { - header_.max_compression_size = header_.block_size; - } - return true; } |