summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
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 /drivers/md/dm-thin.c
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 '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 ee5a3fc93b0e..026215566abd 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)
2053 * stacking of discard limits (this keeps the pool and 2053 * stacking of discard limits (this keeps the pool and
2054 * thin devices' discard limits consistent). 2054 * thin devices' discard limits consistent).
2055 */ 2055 */
2056 ti->discards_supported = 1; 2056 ti->discards_supported = true;
2057 } 2057 }
2058 ti->private = pt; 2058 ti->private = pt;
2059 2059
@@ -2656,11 +2656,11 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
2656 2656
2657 /* In case the pool supports discards, pass them on. */ 2657 /* In case the pool supports discards, pass them on. */
2658 if (tc->pool->pf.discard_enabled) { 2658 if (tc->pool->pf.discard_enabled) {
2659 ti->discards_supported = 1; 2659 ti->discards_supported = true;
2660 ti->num_discard_requests = 1; 2660 ti->num_discard_requests = 1;
2661 ti->discard_zeroes_data_unsupported = 1; 2661 ti->discard_zeroes_data_unsupported = true;
2662 /* Discard requests must be split on a block boundary */ 2662 /* Discard requests must be split on a block boundary */
2663 ti->split_discard_requests = 1; 2663 ti->split_discard_requests = true;
2664 } 2664 }
2665 2665
2666 dm_put(pool_md); 2666 dm_put(pool_md);