aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2018-08-24 17:44:05 +0200
committerDavid Sterba <dsterba@suse.com>2018-10-15 17:23:38 +0200
commitaa144bfeaa7f87c536ab323edfe2692285343e68 (patch)
tree071a00c5aeb589f05f8aea309cb9d536a8a252aa /fs/btrfs/ctree.h
parent9f6cbcbb09d0f2a73ccb9998f6ac34606da9c938 (diff)
btrfs: dev-replace: avoid useless lock on error handling path
The exit sequence in btrfs_dev_replace_start does not allow to simply add a label to the right place so the error handling after starting transaction failure jumps there. Currently there's a lock that pairs with the unlock in the section, which is unnecessary and only raises questions. Add a variable to track the locking status and avoid the extra locking. Reviewed-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
0 files changed, 0 insertions, 0 deletions