btrfs: use bool type for delayed ref head fields that are used as booleans
authorFilipe Manana <fdmanana@suse.com>
Mon, 29 May 2023 15:17:04 +0000 (16:17 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2023 11:59:32 +0000 (13:59 +0200)
commit61c681fef7dd44521070fd4198abede2077afb8e
treec5f0ca05d092331e3360a0e8e922ee84cc172557
parent1e6b71c34bbbbde920357265abd161cb727487b8
btrfs: use bool type for delayed ref head fields that are used as booleans

There's no point in have several fields defined as 1 bit unsigned int in
struct btrfs_delayed_ref_head, we can instead use a bool type, it makes
the code a bit more readable and it doesn't change the structure size.
So switch them to proper booleans.

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