On Mon, Dec 09, 2019 at 11:38:46AM -0800, Dennis Zhou wrote:
> Returning free space to the free space cache lets it immediately be
> reused. So discard before returning the free space otherwise we can race
> here.
>
> Fixes: 55e734b728c0 ("btrfs: Don't discard unwritten extents")
Unstable commit id as the patch is still in misc-next, so I'm going to
fold the fix to the original patch. Thanks.
