mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 11:40:53 +07:00
dm mpath: cleanup -Wbool-operation warning in choose_pgpath()
Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
566cf877a1
commit
d19a55ccad
@ -427,7 +427,7 @@ static struct pgpath *choose_pgpath(struct multipath *m, size_t nr_bytes)
|
|||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
struct priority_group *pg;
|
struct priority_group *pg;
|
||||||
struct pgpath *pgpath;
|
struct pgpath *pgpath;
|
||||||
bool bypassed = true;
|
unsigned bypassed = 1;
|
||||||
|
|
||||||
if (!atomic_read(&m->nr_valid_paths)) {
|
if (!atomic_read(&m->nr_valid_paths)) {
|
||||||
clear_bit(MPATHF_QUEUE_IO, &m->flags);
|
clear_bit(MPATHF_QUEUE_IO, &m->flags);
|
||||||
@ -466,7 +466,7 @@ static struct pgpath *choose_pgpath(struct multipath *m, size_t nr_bytes)
|
|||||||
*/
|
*/
|
||||||
do {
|
do {
|
||||||
list_for_each_entry(pg, &m->priority_groups, list) {
|
list_for_each_entry(pg, &m->priority_groups, list) {
|
||||||
if (pg->bypassed == bypassed)
|
if (pg->bypassed == !!bypassed)
|
||||||
continue;
|
continue;
|
||||||
pgpath = choose_path_in_pg(m, pg, nr_bytes);
|
pgpath = choose_path_in_pg(m, pg, nr_bytes);
|
||||||
if (!IS_ERR_OR_NULL(pgpath)) {
|
if (!IS_ERR_OR_NULL(pgpath)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user