commit | 057aac3e628f38df984b419f7458455bf698eb7e | [log] [tgz] |
---|---|---|
author | Nikolay Borisov <nborisov@suse.com> | Tue Nov 07 11:22:54 2017 +0200 |
committer | David Sterba <dsterba@suse.com> | Mon Jan 22 16:08:11 2018 +0100 |
tree | d02029f22d73d5766c645952f0332d27fcc45560 | |
parent | f5c29bd9dbd3e90e03ab7697ecc373b49394e62e [diff] |
btrfs: Reduce scope of delayed_rsv->lock in may_commit_trans After commit 996478ca9c460886ac1 ("btrfs: change how we decide to commit transactions during flushing") there is no need to hold the delayed_rsv during the percpu_counter_compare call since we get the byte's snapshot earlier. So hold the lock only while reading delayed_rsv. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>