On Wed, Mar 03, 2021 at 06:54:40AM -0600, 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()

It would be better to send v2 of that patch, a cleanup with a fix should
be just one patch.

Reply via email to