]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: change return type of btrfs_delayed_ref_lock() to boolean
authorFilipe Manana <fdmanana@suse.com>
Mon, 21 Oct 2024 11:32:55 +0000 (12:32 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:20 +0000 (14:34 +0100)
commit7ef360488600e8b7c131306b9f5ed7e42202b487
treeef7ad1588ad9bc9593c4ee6c65d55d9ad6ef1057
parentf7d4b4924d226a9007c3a3cb14551b28a47f8767
btrfs: change return type of btrfs_delayed_ref_lock() to boolean

The function only returns 0, meaning it was able to lock the delayed ref
head, or -EAGAIN in case it wasn't able to lock it. So simplify this and
use a boolean return type instead, returning true if it was able to lock
and false otherwise.

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
fs/btrfs/delayed-ref.h
fs/btrfs/extent-tree.c