Re: [PATCH 4/6] btrfs: Streamline code in run_delalloc_nocow in case of inline extents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 05, 2019 at 05:47:06PM +0300, Nikolay Borisov wrote:
> The extent range check right after the "out_check" label is redundant,
> because the only way it can trigger is if we have an inline extent. In
> this case it makes more sense to actually move it in the branch
> explictly dealing with inlines extents. What's more, the nested
> 'if (nocow)' can never be true because for inline extents we always do
> CoW and there is no chance 'noco' can be true, just remove that check.
> 
> Signed-off-by: Nikolay Borisov <nborisov@xxxxxxxx>

Reviewed-by: David Sterba <dsterba@xxxxxxxx>



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux