@@ -1336,14 +1336,14 @@ static bool dm_table_supports_flush(struct dm_table *t, unsigned flush)
1336
1336
continue ;
1337
1337
1338
1338
if (ti -> flush_supported )
1339
- return 1 ;
1339
+ return true ;
1340
1340
1341
1341
if (ti -> type -> iterate_devices &&
1342
1342
ti -> type -> iterate_devices (ti , device_flush_capable , & flush ))
1343
- return 1 ;
1343
+ return true ;
1344
1344
}
1345
1345
1346
- return 0 ;
1346
+ return false ;
1347
1347
}
1348
1348
1349
1349
static bool dm_table_discard_zeroes_data (struct dm_table * t )
@@ -1356,10 +1356,10 @@ static bool dm_table_discard_zeroes_data(struct dm_table *t)
1356
1356
ti = dm_table_get_target (t , i ++ );
1357
1357
1358
1358
if (ti -> discard_zeroes_data_unsupported )
1359
- return 0 ;
1359
+ return false ;
1360
1360
}
1361
1361
1362
- return 1 ;
1362
+ return true ;
1363
1363
}
1364
1364
1365
1365
static int device_is_nonrot (struct dm_target * ti , struct dm_dev * dev ,
@@ -1405,10 +1405,10 @@ static bool dm_table_all_devices_attribute(struct dm_table *t,
1405
1405
1406
1406
if (!ti -> type -> iterate_devices ||
1407
1407
!ti -> type -> iterate_devices (ti , func , NULL ))
1408
- return 0 ;
1408
+ return false ;
1409
1409
}
1410
1410
1411
- return 1 ;
1411
+ return true ;
1412
1412
}
1413
1413
1414
1414
static int device_not_write_same_capable (struct dm_target * ti , struct dm_dev * dev ,
@@ -1465,14 +1465,14 @@ static bool dm_table_supports_discards(struct dm_table *t)
1465
1465
continue ;
1466
1466
1467
1467
if (ti -> discards_supported )
1468
- return 1 ;
1468
+ return true ;
1469
1469
1470
1470
if (ti -> type -> iterate_devices &&
1471
1471
ti -> type -> iterate_devices (ti , device_discard_capable , NULL ))
1472
- return 1 ;
1472
+ return true ;
1473
1473
}
1474
1474
1475
- return 0 ;
1475
+ return false ;
1476
1476
}
1477
1477
1478
1478
void dm_table_set_restrictions (struct dm_table * t , struct request_queue * q ,
0 commit comments