diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-08-15 10:39:56 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-15 17:23:35 +0200 |
commit | 0110a4c43451533de1ea1bbdc57b5d452f9d8b25 (patch) | |
tree | 1ed4551c8b68165b79091e18260f0db80dc963b0 /fs/btrfs/volumes.c | |
parent | e726138676f896146a55a98305665e81d34d038c (diff) | |
download | lwn-0110a4c43451533de1ea1bbdc57b5d452f9d8b25.tar.gz lwn-0110a4c43451533de1ea1bbdc57b5d452f9d8b25.zip |
btrfs: refactor __btrfs_run_delayed_refs loop
Refactor the delayed refs loop by using the newly introduced
btrfs_run_delayed_refs_for_head function. This greatly simplifies
__btrfs_run_delayed_refs and makes it more obvious what is happening.
We now have 1 loop which iterates the existing delayed_heads and then
each selected ref head is processed by the new helper. All existing
semantics of the code are preserved so no functional changes.
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 'fs/btrfs/volumes.c')
0 files changed, 0 insertions, 0 deletions