]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: use test_and_set_bit() in btrfs_delayed_delete_inode_ref()
authorFilipe Manana <fdmanana@suse.com>
Wed, 19 Nov 2025 12:35:10 +0000 (12:35 +0000)
committerDavid Sterba <dsterba@suse.com>
Tue, 25 Nov 2025 00:53:32 +0000 (01:53 +0100)
commit9c78fe4a85fd968e1202b6c8cd9306746039ce2b
treefcb991b263d5e3dc29269d97a951dbdef8ac6015
parent70085399b1a1623ef488d96b4c2d0c67be1d0607
btrfs: use test_and_set_bit() in btrfs_delayed_delete_inode_ref()

Instead of testing and setting the BTRFS_DELAYED_NODE_DEL_IREF bit in the
delayed node's flags, use test_and_set_bit() which makes the code shorter
without compromising readability and getting rid of the label and goto.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Daniel Vacek <neelx@suse.com>
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-inode.c