Re: [PATCH v2 01/10] Btrfs: fix incorrect block_len in merge_extent_mapping

2018-01-09 Thread Josef Bacik
On Fri, Jan 05, 2018 at 12:51:08PM -0700, Liu Bo wrote: > %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

[PATCH v2 01/10] Btrfs: fix incorrect block_len in merge_extent_mapping

2018-01-05 Thread Liu Bo
%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