diff options
| author | Nikolay Borisov <nborisov@suse.com> | 2020-02-21 15:11:24 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2020-05-25 11:25:23 +0200 |
| commit | a7571232b2aa8a43a137f827d77941634c309144 (patch) | |
| tree | 2494d346aad79aa4875a4de9114d6c7087426bbc /tools/perf/scripts/python/bin | |
| parent | btrfs: don't force read-only after error in drop snapshot (diff) | |
| download | linux-a7571232b2aa8a43a137f827d77941634c309144.tar.gz linux-a7571232b2aa8a43a137f827d77941634c309144.zip | |
btrfs: use list_for_each_entry_safe in free_reloc_roots
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.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
