summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorSu Yue <suy.fnst@cn.fujitsu.com>2018-11-28 11:21:12 +0800
committerDavid Sterba <dsterba@suse.com>2019-07-01 13:34:55 +0200
commit8f63a84051e8e42aa99291197e4adae67241a705 (patch)
tree737bd32cbd92ee045380bdee5ad4a8e5d917cb8b /fs/btrfs/super.c
parent4c094c33c9ed4b8d0d814bd1d7ff78e123d15d00 (diff)
downloadlinux-8f63a84051e8e42aa99291197e4adae67241a705.tar.gz
linux-8f63a84051e8e42aa99291197e4adae67241a705.tar.bz2
linux-8f63a84051e8e42aa99291197e4adae67241a705.zip
btrfs: switch order of unlocks of space_info and bg in do_trimming()
In function do_trimming(), block_group->lock should be unlocked first, as the locks should be released in the reverse order. This does not cause problems but should follow the best practices. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.com> [ update changelog ] Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions