summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2018-01-05 12:51:08 -0700
committerDavid Sterba <dsterba@suse.com>2018-01-22 16:08:21 +0100
commita520a7e0b548690ea8eb77bb45800459351a7cf5 (patch)
tree6f865743331bbeeba4babc96f23fe2229d17accc /drivers/platform
parent3cbf26da5ec85f1d3177eee534e377c707ed89e1 (diff)
Btrfs: fix incorrect block_len in merge_extent_mapping
%block_len could be checked on deciding if two em are mergeable. merge_extent_mapping() has only added the front pad if the front part of em gets truncated, but it's possible that the end part gets truncated. For both compressed extent and inline extent, em->block_len is not adjusted accordingly, and for regular extent, em->block_len always equals to em->len, hence this sets em->block_len with em->len. Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'drivers/platform')
0 files changed, 0 insertions, 0 deletions