# Re: \[RFC PATCH v3 06/12\] btrfs: remove dead snapshot-aware defrag code

- From: Nikolay Borisov \<hidden\>
- Date: 2019-11-26 15:13:49 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2019/11/167673
- Thread: https://ratatoskr.run/linux-fsdevel/2019/11/167271/t.md

```text


On 20.11.19 г. 20:24 ч., Omar Sandoval wrote:
> From: Omar Sandoval <redacted>
> 
> Snapshot-aware defrag has been disabled since commit 8101c8dbf624
> ("Btrfs: disable snapshot aware defrag for now") almost 6 years ago.
> Let's remove the dead code. If someone is up to the task of bringing it
> back, they can dig it up from git.
> 
> This is logically a revert of commit 38c227d87c49 ("Btrfs:
> snapshot-aware defrag") except that now we have to clear the
> EXTENT_DEFRAG bit to avoid need_force_cow() returning true forever.
> 
> Signed-off-by: Omar Sandoval <redacted>

Reviewed-by: Nikolay Borisov <redacted>
```
