projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566cf87
)
dm mpath: cleanup -Wbool-operation warning in choose_pgpath()
author
Mike Snitzer
<
[email protected]
>
Fri, 6 Jan 2017 20:33:14 +0000
(15:33 -0500)
committer
Mike Snitzer
<
[email protected]
>
Fri, 3 Feb 2017 15:18:37 +0000
(10:18 -0500)
Reported-by: David Binderman <
[email protected]
>
Signed-off-by: Mike Snitzer <
[email protected]
>
drivers/md/dm-mpath.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-mpath.c
b/drivers/md/dm-mpath.c
index 6400cffb986df21be7289dce8d2a4d4ff228a9a2..3570bcb7a4a4e5cade63c39b9071ed610da1e4ae 100644
(file)
--- a/
drivers/md/dm-mpath.c
+++ b/
drivers/md/dm-mpath.c
@@
-427,7
+427,7
@@
static struct pgpath *choose_pgpath(struct multipath *m, size_t nr_bytes)
unsigned long flags;
struct priority_group *pg;
struct pgpath *pgpath;
-
bool bypassed = true
;
+
unsigned bypassed = 1
;
if (!atomic_read(&m->nr_valid_paths)) {
clear_bit(MPATHF_QUEUE_IO, &m->flags);
@@
-466,7
+466,7
@@
check_current_pg:
*/
do {
list_for_each_entry(pg, &m->priority_groups, list) {
- if (pg->bypassed == bypassed)
+ if (pg->bypassed ==
!!
bypassed)
continue;
pgpath = choose_path_in_pg(m, pg, nr_bytes);
if (!IS_ERR_OR_NULL(pgpath)) {