On 03/03/2021 13:54, Goldwyn Rodrigues wrote:
> need_force_cow will evaluate to false if both BTRFS_INODE_NODATACOW and
> BTRFS_INODE_PREALLOC are not set. Change the function to should_cow()
> instead and correct the conditions so should_nocow() returns true if
> either BTRFS_INODE_NODATACOW or BTRFS_INODE_PREALLOC, but it is not a
> defrag extent.
> 
> Fixes: 7e33213f8ccc btrfs: remove force argument from run_delalloc_nocow()
> Signed-off-by: Goldwyn Rodrigues <rgold...@suse.com>

This fixes the ASSERT() I've seen with zoned filesystems.

Tested-by: Johannes Thumshirn <johannes.thumsh...@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumsh...@wdc.com>

Thanks,
        Johannes

Reply via email to