Re: [PATCH 1/3] btrfs: Factor out ref head locking code in __btrfs_run_delayed_refs

2018-09-21 Thread David Sterba
On Wed, Aug 15, 2018 at 10:39:54AM +0300, Nikolay Borisov wrote: > This is in preparation to refactor the giant loop in > __btrfs_run_delayed_refs. As a first step define a new function > which implements acquiring a reference to a btrfs_delayed_refs_head and > use it. No functional changes. > > S

[PATCH 1/3] btrfs: Factor out ref head locking code in __btrfs_run_delayed_refs

2018-08-15 Thread Nikolay Borisov
This is in preparation to refactor the giant loop in __btrfs_run_delayed_refs. As a first step define a new function which implements acquiring a reference to a btrfs_delayed_refs_head and use it. No functional changes. Signed-off-by: Nikolay Borisov --- fs/btrfs/extent-tree.c | 54 +