Skip to contentSkip to conversation

Change xen_vbd's flush_support and discard_secure to have type unsigned int, rather than bool

PATCH In review Oliver Chick 2 participants 2 messages Sep 21, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change xen_vbd's flush_support and discard_secure to have type unsigned int, rather than bool

Changing the type of bdev parameters to be unsigned int :1, rather than bool. This is more consistent with the types of other features in the block drivers.

---
 drivers/block/xen-blkback/common.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/block/xen-blkback/common.h +2 -2
index 9ad3b5e..9a54623 100644
@@ -158,8 +158,8 @@ struct xen_vbd {
 	struct block_device	*bdev;
 	/* Cached size parameter. */
 	sector_t		size;
-	bool			flush_support;
-	bool			discard_secure;
+	unsigned int		flush_support:1;
+	unsigned int		discard_secure:1;
 };
 
 struct backend_info;
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 2 lines · Oliver Chick

Changing the type of bdev parameters to be unsigned int :1, rather than bool. This is more consistent with the types of other features in the block drivers.

Thanks. Put in my for-jens branch.

Quoted 23 lines
---
 drivers/block/xen-blkback/common.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/block/xen-blkback/common.h +2 -2
index 9ad3b5e..9a54623 100644
@@ -158,8 +158,8 @@ struct xen_vbd {
 	struct block_device	*bdev;
 	/* Cached size parameter. */
 	sector_t		size;
-	bool			flush_support;
-	bool			discard_secure;
+	unsigned int		flush_support:1;
+	unsigned int		discard_secure:1;
 };
 
 struct backend_info;
Signature · 1 line
1.7.9.5