summaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-08-15 10:39:55 +0300
committerDavid Sterba <dsterba@suse.com>2018-10-15 17:23:35 +0200
commite726138676f896146a55a98305665e81d34d038c (patch)
tree2d6b061c0b7d45ba69527bc68dd874a4f3502646 /lib/Makefile
parentb1cdbcb53a6edd84d50b72117d49a350575bbe6a (diff)
btrfs: Factor out loop processing all refs of a head
This patch introduces a new helper encompassing the implicit inner loop in __btrfs_run_delayed_refs which processes all the refs for a given head. The code is mostly copy/paste, the only difference is that if we detect a newer reference then -EAGAIN is returned so that callers can react correctly. Also, at the end of the loop the head is relocked and btrfs_merge_delayed_refs is run again to retain the pre-refactoring semantics. 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 'lib/Makefile')
0 files changed, 0 insertions, 0 deletions