aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohannes Thumshirn <[email protected]>2019-11-26 09:40:05 +0100
committerDavid Sterba <[email protected]>2020-01-20 16:40:53 +0100
commit3fff3975a7155c49b85736786c6bcb1dd9dcec18 (patch)
tree059bbadcaddd1effd9ce17a411d289d0ce55e82e /tools/perf/scripts/python
parent6bb6b51447ca114980c2debab8241ae21f8557c7 (diff)
btrfs: decrement number of open devices after closing the device not before
In btrfs_close_one_device we're decrementing the number of open devices before we're calling btrfs_close_bdev(). As there is no intermediate exit between these points in this function it is technically OK to do so, but it makes the code a bit harder to understand. Move both operations closer together and move the decrement step after btrfs_close_bdev(). Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Johannes Thumshirn <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions