summaryrefslogtreecommitdiff
path: root/drivers/video/geode
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2011-08-02 11:32:01 (GMT)
committerAlasdair G Kergon <agk@redhat.com>2011-08-02 11:32:01 (GMT)
commit936688d7eb0f39be96c5791be1a04994cc8d6aa0 (patch)
tree4001f52284d39f5353174096e76b357f52ee2fb7 /drivers/video/geode
parent283a8328ca5b987e547848de8ff0e28edcfb9e08 (diff)
downloadlinux-fsl-qoriq-936688d7eb0f39be96c5791be1a04994cc8d6aa0.tar.xz
dm table: fix discard support
Remove 'discards_supported' from the dm_table structure. The same information can be easily discovered from the table's target(s) in dm_table_supports_discards(). Before this fix dm_table_supports_discards() would skip checking the individual targets' 'discards_supported' flag if any one target in the table didn't set num_discard_requests > 0. Now the per-target 'discards_supported' flag is effective at insuring the final DM device advertises discard support. But, to be clear, targets that don't support discards (!num_discard_requests) will not receive discard requests. Also DMWARN if a target sets 'discards_supported' override but forgets to set 'num_discard_requests'. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/video/geode')
0 files changed, 0 insertions, 0 deletions