aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2017-11-07 11:22:54 +0200
committerDavid Sterba <[email protected]>2018-01-22 16:08:11 +0100
commit057aac3e628f38df984b419f7458455bf698eb7e (patch)
treed02029f22d73d5766c645952f0332d27fcc45560 /fs/btrfs/inode.c
parentf5c29bd9dbd3e90e03ab7697ecc373b49394e62e (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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions