]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove useless used space increment during space reservation
authorFilipe Manana <fdmanana@suse.com>
Thu, 8 Sep 2022 11:31:52 +0000 (12:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:28:02 +0000 (12:28 +0200)
commit549a5ba3f2da1697cec3a4ee1c96ba1626c5e4bd
treed9095373d628882e1fd87f1551c36279a59ef2ee
parenta01497e8410e155381fccb0db98d424f7586108c
btrfs: remove useless used space increment during space reservation

At space-info.c:__reserve_bytes(), we increment the 'used' variable, but
then we don't use the variable anymore, making the increment pointless.
The increment became useless with commit 65c071c95375f6 ("btrfs: simplify
the logic in need_preemptive_flushing"), so just remove it.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/space-info.c