summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2012-07-27 15:08:08 +0100
committerAlasdair G Kergon <agk@redhat.com>2012-07-27 15:08:08 +0100
commit0ac55489d9e3898987b2ae305844cf2af86e6b8d (patch)
treeceacdf378d929bd0037879f42ea6270bc5ba220d /drivers/md/dm-thin.c
parent16ad3d103dbec4fe6c5950d5a6c383ba9a5296ef (diff)
downloadop-kernel-dev-0ac55489d9e3898987b2ae305844cf2af86e6b8d.zip
op-kernel-dev-0ac55489d9e3898987b2ae305844cf2af86e6b8d.tar.gz
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 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index ee5a3fc..0262155 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -2053,7 +2053,7 @@ static int pool_ctr(struct dm_target *ti, unsigned argc, char **argv)
* stacking of discard limits (this keeps the pool and
* thin devices' discard limits consistent).
*/
- ti->discards_supported = 1;
+ ti->discards_supported = true;
}
ti->private = pt;
@@ -2656,11 +2656,11 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
/* In case the pool supports discards, pass them on. */
if (tc->pool->pf.discard_enabled) {
- ti->discards_supported = 1;
+ ti->discards_supported = true;
ti->num_discard_requests = 1;
- ti->discard_zeroes_data_unsupported = 1;
+ ti->discard_zeroes_data_unsupported = true;
/* Discard requests must be split on a block boundary */
- ti->split_discard_requests = 1;
+ ti->split_discard_requests = true;
}
dm_put(pool_md);
OpenPOWER on IntegriCloud