aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2012-07-27 10:08:08 -0400
committerAlasdair G Kergon <agk@redhat.com>2012-07-27 10:08:08 -0400
commit0ac55489d9e3898987b2ae305844cf2af86e6b8d (patch)
treeceacdf378d929bd0037879f42ea6270bc5ba220d /include/linux/device-mapper.h
parent16ad3d103dbec4fe6c5950d5a6c383ba9a5296ef (diff)
dm: use bool bitfields in struct dm_target
Use boolean bit fields for flags in struct dm_target. Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index bdd65e97a129..eb753633b576 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -221,18 +221,18 @@ struct dm_target {
221 * Set if this target needs to receive discards regardless of 221 * Set if this target needs to receive discards regardless of
222 * whether or not its underlying devices have support. 222 * whether or not its underlying devices have support.
223 */ 223 */
224 unsigned discards_supported:1; 224 bool discards_supported:1;
225 225
226 /* 226 /*
227 * Set if the target required discard request to be split 227 * Set if the target required discard request to be split
228 * on max_io_len boundary. 228 * on max_io_len boundary.
229 */ 229 */
230 unsigned split_discard_requests:1; 230 bool split_discard_requests:1;
231 231
232 /* 232 /*
233 * Set if this target does not return zeroes on discarded blocks. 233 * Set if this target does not return zeroes on discarded blocks.
234 */ 234 */
235 unsigned discard_zeroes_data_unsupported:1; 235 bool discard_zeroes_data_unsupported:1;
236}; 236};
237 237
238/* Each target can link one of these into the table */ 238/* Each target can link one of these into the table */