Nikolay Borisov 8577787fac btrfs: Move checks from btrfs_wq_run_delayed_node to btrfs_balance_delayed_items
btrfs_balance_delayed_items is the sole caller of
btrfs_wq_run_delayed_node and already includes one of the checks whether
the delayed inodes should be run. On the other hand
btrfs_wq_run_delayed_node duplicates that check and performs an
additional one for wq congestion.

Let's remove the duplicate check and move the congestion one in
btrfs_balance_delayed_items, leaving btrfs_wq_run_delayed_node to only
care about setting up the wq run. No functional changes.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-01-22 16:08:11 +01:00
..
2017-11-29 14:26:50 -08:00
2017-11-29 14:26:50 -08:00
2017-12-10 08:30:04 -08:00
2017-11-01 20:45:35 +01:00
2017-12-10 08:30:04 -08:00
2017-10-30 12:28:00 +01:00
2017-10-30 12:27:57 +01:00
2017-11-29 14:26:50 -08:00
2018-01-22 16:08:11 +01:00