On Thu, Mar 04, 2021 at 09:06:25AM -0600, Goldwyn Rodrigues wrote: > force_nocow can be calculated by btrfs_inode and does not need to be > passed as an argument. > > This simplifies run_delalloc_nocow() call from btrfs_run_delalloc_range() > A new function, should_nocow() checks if the range should be nocow'd or > not. The function returns true iff either BTRFS_INODE_NODATA or > BTRFS_INODE_PREALLOC, but is not a defrag extent. > > Signed-off-by: Goldwyn Rodrigues <rgold...@suse.com> > Reviewed-by: David Sterba <dste...@suse.com> > Tested-by: Johannes Thumshirn <johannes.thumsh...@wdc.com> > Reviewed-by: Johannes Thumshirn <johannes.thumsh...@wdc.com>
Added to misc-next, thanks.