mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
ANDROID: dm-bow: Fix free_show value is incorrect
Fix free_show value is incorrect Change-Id: If7f36a64afa600c980ee8a25393f8716a6ffd474 Signed-off-by: Dylan Chang <dylan.chang@oneplus.com> Bug: 152116739 (cherry picked from commit feff0b2236497c0651baa7f59ea50c2377fff053) Signed-off-by: Paul Lawrence <paullawrence@google.com>
This commit is contained in:
parent
4bdce1e542
commit
1de6fe1a46
@ -793,6 +793,7 @@ static int prepare_unchanged_range(struct bow_context *bc, struct bow_range *br,
|
|||||||
*/
|
*/
|
||||||
original_type = br->type;
|
original_type = br->type;
|
||||||
sector0 = backup_br->sector;
|
sector0 = backup_br->sector;
|
||||||
|
bc->trims_total -= range_size(backup_br);
|
||||||
if (backup_br->type == TRIMMED)
|
if (backup_br->type == TRIMMED)
|
||||||
list_del(&backup_br->trimmed_list);
|
list_del(&backup_br->trimmed_list);
|
||||||
backup_br->type = br->type == SECTOR0_CURRENT ? SECTOR0_CURRENT
|
backup_br->type = br->type == SECTOR0_CURRENT ? SECTOR0_CURRENT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user