]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: switch order of unlocks of space_info and bg in do_trimming()
authorSu Yue <suy.fnst@cn.fujitsu.com>
Wed, 28 Nov 2018 03:21:12 +0000 (11:21 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 1 Jul 2019 11:34:55 +0000 (13:34 +0200)
commitaf761760c5002cad2c39eea688b26b7ac1c3f02f
tree737bd32cbd92ee045380bdee5ad4a8e5d917cb8b
parent3a4fc1b9f708c2c763381b77445a8dfdbe107946
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>
fs/btrfs/free-space-cache.c