summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorNikolay Borisov2017-11-07 10:22:54 +0100
committerDavid Sterba2018-01-22 16:08:11 +0100
commit057aac3e628f38df984b419f7458455bf698eb7e (patch)
treed02029f22d73d5766c645952f0332d27fcc45560 /fs/btrfs/inode.c
parentBtrfs: add __init macro to btrfs init functions (diff)
downloadkernel-qcow2-linux-057aac3e628f38df984b419f7458455bf698eb7e.tar.gz
kernel-qcow2-linux-057aac3e628f38df984b419f7458455bf698eb7e.tar.xz
kernel-qcow2-linux-057aac3e628f38df984b419f7458455bf698eb7e.zip
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>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions