dm: do not set 'discards_supported' in targets that do not need it
authorMike Snitzer <snitzer@redhat.com>
Thu, 16 Nov 2017 15:22:42 +0000 (10:22 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 16 Nov 2017 21:33:54 +0000 (16:33 -0500)
commit7dea378b23fdc5003379615fc579dbf987ed8128
tree30b4da041c670ce537d0b84dcb7f43fe91f571bd
parent8a74d29d541cd86569139c6f3f44b2d210458071
dm: do not set 'discards_supported' in targets that do not need it

The DM target's 'discards_supported' flag is intended to act as an
override.  Meaning, even if the underlying storage doesn't support
discards the DM target will.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-era-target.c
drivers/md/dm-raid.c