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:
502624b
)
dm table: fix write same support
author
Mike Snitzer
<
[email protected]
>
Fri, 10 May 2013 13:37:16 +0000
(14:37 +0100)
committer
Alasdair G Kergon
<
[email protected]
>
Fri, 10 May 2013 13:37:16 +0000
(14:37 +0100)
If device_not_write_same_capable() returns true then the iterate_devices
loop in dm_table_supports_write_same() should return false.
Reported-by: Bharata B Rao <
[email protected]
>
Signed-off-by: Mike Snitzer <
[email protected]
>
Cc:
[email protected]
# v3.8+
Signed-off-by: Alasdair G Kergon <
[email protected]
>
drivers/md/dm-table.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-table.c
b/drivers/md/dm-table.c
index e50dad0c65f4759d535b5cf81b0258a3b27066b5..1ff252ab7d46a1ed55fb98a93426acfb764998dd 100644
(file)
--- a/
drivers/md/dm-table.c
+++ b/
drivers/md/dm-table.c
@@
-1442,7
+1442,7
@@
static bool dm_table_supports_write_same(struct dm_table *t)
return false;
if (!ti->type->iterate_devices ||
-
!
ti->type->iterate_devices(ti, device_not_write_same_capable, NULL))
+ ti->type->iterate_devices(ti, device_not_write_same_capable, NULL))
return false;
}