aboutsummaryrefslogtreecommitdiff
path: root/fs/btrfs/extent_io.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2022-10-27 13:07:03 +0200
committerDavid Sterba <dsterba@suse.com>2022-12-05 18:00:48 +0100
commit8ec8519b47897d01a7e8c5ad95734529a3dd60bf (patch)
treee7f9c3961317ca18931376780eb2419a085b31c0 /fs/btrfs/extent_io.c
parent428c8e03109e717d90e0d1329dc3d926b9421ad3 (diff)
btrfs: switch extent_page_data bit fields to bools
The semantics of the two members is a boolean, so change the type accordingly. We have space in extent_page_data due to alignment there's no change in size. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r--fs/btrfs/extent_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index bda420d697f4..c1294a6de88a 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -109,10 +109,10 @@ struct extent_page_data {
/* tells writepage not to lock the state bits for this range
* it still does the unlocking
*/
- unsigned int extent_locked:1;
+ bool extent_locked;
/* tells the submit_bio code to use REQ_SYNC */
- unsigned int sync_io:1;
+ bool sync_io;
};
static void submit_one_bio(struct btrfs_bio_ctrl *bio_ctrl)