Skip to content

Commit 4ea0288

Browse files
committed
btrfs: use unsigned type for single bit bitfield
Signed-off-by: David Sterba <dsterba@suse.cz>
1 parent 7a36dde commit 4ea0288

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/btrfs/ctree.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,12 @@ struct btrfs_space_info {
740740
*/
741741
unsigned long reservation_progress;
742742

743-
int full:1; /* indicates that we cannot allocate any more
743+
unsigned int full:1; /* indicates that we cannot allocate any more
744744
chunks for this space */
745-
int chunk_alloc:1; /* set if we are allocating a chunk */
745+
unsigned int chunk_alloc:1; /* set if we are allocating a chunk */
746746

747-
int force_alloc; /* set if we need to force a chunk alloc for
748-
this space */
747+
unsigned int force_alloc; /* set if we need to force a chunk
748+
alloc for this space */
749749

750750
struct list_head list;
751751

0 commit comments

Comments
 (0)