summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2018-07-31 16:43:26 -0700
committerDavid Anderson <dvander@google.com>2018-08-02 09:14:47 -0700
commitd81e4760542d8112e7d9185fc3237cb1572f5e23 (patch)
tree7e2859ae3b6d522f4850dcdfb26263f0ba9ddb65 /libutils/Unicode.cpp
parent81143ed24398e6d1f60d0998ec6f477ac76a7791 (diff)
liblp: Simplify GrowPartition().
The partition resize algorithm duplicates a lot of logic because it handles the final free interval separately from other free intervals. This is unnecessary and makes it harder to change the actual algorithm. This change makes GrowPartition() treat the final free space region the same as free gaps in between partitions. It does this by converting the extent list into a gap list, and then adds a final gap for the remainder of the free space. The resize function no longer has to treat the end of the disk separately. This patch does not change the way partitions are allocated, it is purely a refactoring. Bug: 79173901 Test: liblp_test gtest Change-Id: I4780f20b23fe021eac62de874b061857712c04fe
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions