Re: [PATCH 2/2] btrfs: Use list_for_each_entry_safe in free_reloc_roots

David Sterba
2020-04-10T16:33:50Z

On Fri, Feb 21, 2020 at 03:11:24PM +0200, Nikolay Borisov wrote:
> The function always works on a local copy of the reloc root list, which
> cannot be modified outside of it so using list_for_each_entry is fine.
> Additionally the macro handles empty lists so drop list_empty checks of
> callers. No semantic changes.
>
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>

This is still relevant for misc-next, so I'm applying it to misc-next.