]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: remove duplicated code to drop delayed ref during transaction abort
authorFilipe Manana <fdmanana@suse.com>
Mon, 21 Oct 2024 11:10:26 +0000 (12:10 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:20 +0000 (14:34 +0100)
commit8d07a8f4c6415c71a9e0232aef8c2aee39620fca
treec82aaf47629b26f4e7382562b39f1a0be2aa930d
parentc3a5888e0f4749c721b969e635303f397be9b44e
btrfs: remove duplicated code to drop delayed ref during transaction abort

When destroying delayed refs during a transaction abort, we have open
coded the removal of a delayed ref, which is also done by the static
helper function drop_delayed_ref(). So remove that duplicated code and
use drop_delayed_ref() instead.

Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.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/delayed-ref.c