]> Gentwo Git Trees - linux/.git/commit
btrfs: move ticket wakeup and finalization to remove_ticket()
authorFilipe Manana <fdmanana@suse.com>
Mon, 20 Oct 2025 21:59:03 +0000 (22:59 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:18:17 +0000 (22:18 +0100)
commit50a51b53782af2f9eabe77b1f0d5a3b339ee4531
treec21c18bc879afad3f626f62bc2f3adb2c006fd81
parentcdf8a566eeef0c28a082dcdfb5d91e964029d6c3
btrfs: move ticket wakeup and finalization to remove_ticket()

Instead of repeating the wakeup and setup of the ->bytes or ->error field,
move those steps to remove_ticket() to avoid duplication. This is also
needed for the next patch in the series, so that we avoid duplicating more
logic.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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