btrfs: make btrfs_delete_delayed_insertion_item() return a boolean
authorFilipe Manana <fdmanana@suse.com>
Fri, 30 May 2025 17:27:07 +0000 (18:27 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:53:30 +0000 (23:53 +0200)
commit0187acef3558cd5bb6c0fa6c29a362a015a69d72
tree9f7b61baef8fd606b5e87d360f92859ba53cac69
parent7077d7b87288ca3a01aff84f0703927a3787dbae
btrfs: make btrfs_delete_delayed_insertion_item() return a boolean

There's no need to return an integer as all we need to do is return true
or false to tell whether we deleted a delayed item or not. Also the logic
is inverted since we return 1 (true) if we didn't delete and 0 (false) if
we did, which is somewhat counter intuitive. Change the return type to a
boolean and make it return true if we deleted and false otherwise.

Reviewed-by: Boris Burkov <boris@bur.io>
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