From: David Sterba Date: Thu, 27 Oct 2022 11:07:03 +0000 (+0200) Subject: btrfs: switch extent_page_data bit fields to bools X-Git-Tag: v6.6.7~3585^2~152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ec8519b47897d01a7e8c5ad95734529a3dd60bf;p=platform%2Fkernel%2Flinux-starfive.git 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 --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index bda420d..c1294a6d 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)