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 <[email protected]> > Reviewed-by: David Sterba <[email protected]> > Tested-by: Johannes Thumshirn <[email protected]> > Reviewed-by: Johannes Thumshirn <[email protected]>
Added to misc-next, thanks.
