diff options
author | Olaf Hering <olaf@aepfle.de> | 2014-05-21 10:32:40 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2014-05-28 14:17:26 -0400 |
commit | 1c8cad6c1bbcacc07332539f2d7dee22521f9ae0 (patch) | |
tree | 28ecdd3556805dfd8bc201eb4ddad5a2bf1f6eea /include/linux/debugobjects.h | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
xen-blkfront: remove type check from blkfront_setup_discard
In its initial implementation a check for "type" was added, but only phy
and file are handled. This breaks advertised discard support for other
type values such as qdisk.
Fix and simplify this function: If the backend advertises discard
support it is supposed to implement it properly, so enable
feature_discard unconditionally. If the backend advertises the need for
a certain granularity and alignment then propagate both properties to
the blocklayer. The discard-secure property is a boolean, update the code
to reflect that.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions