diff options
author | 2018-08-15 10:39:55 +0300 | |
---|---|---|
committer | 2018-10-15 17:23:35 +0200 | |
commit | e726138676f896146a55a98305665e81d34d038c (patch) | |
tree | 2d6b061c0b7d45ba69527bc68dd874a4f3502646 /fs/btrfs/tree-checker.c | |
parent | btrfs: Factor out ref head locking code in __btrfs_run_delayed_refs (diff) | |
download | wireguard-linux-e726138676f896146a55a98305665e81d34d038c.tar.xz wireguard-linux-e726138676f896146a55a98305665e81d34d038c.zip |
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 '')
0 files changed, 0 insertions, 0 deletions