Re: [RFC ONLY 5/8] btrfs: add code to delete raid extent

Johannes Thumshirn
2022-05-17T08:20:20Z

On 17/05/2022 10:15, Qu Wenruo wrote:
> But btrfs extents are immortal, it can only get freed when every bytes
> are no longer referred to.
>
> Btrfs_drop_extents() is complex because it's working on file extent
> level, but __btrfs_free_extent() is already working on extent level.
>
> Or do you mean, the raid stripe is not really bounded to extent level,
> but really bounded to file extent level?
>
> Then I'm not sure if it's a good idea to do such level mapping then.

It is bound to the file_extent_item as the extent_item is lacking the
(logical, lenght) information I need.