diff mbox series

[1/2] btrfs: switch extent_page_data bit fields to bools

Message ID 56a5c6ea32166aaaf1a0bf89d27ea822a0ebdaff.1666868739.git.dsterba@suse.com (mailing list archive)
State New, archived
Headers show
Series Merge extent_page_data and bio_ctrl | expand

Commit Message

David Sterba Oct. 27, 2022, 11:07 a.m. UTC
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>
---
 fs/btrfs/extent_io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 4b47bb8c590f..1f83610d3491 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -105,10 +105,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)