diff options
author | Joe Thornber <ejt@redhat.com> | 2012-07-27 15:08:07 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2012-07-27 15:08:07 +0100 |
commit | 0e9c24ed7443d090e369a2eddfa13f7f0b5afbaf (patch) | |
tree | 707aed84bf17ee82bb32bb26e776b97afb3493fe /include/linux/device-mapper.h | |
parent | f4b90369d3a9ffe0f48f373c566578c142e95bf2 (diff) | |
download | talos-obmc-linux-0e9c24ed7443d090e369a2eddfa13f7f0b5afbaf.tar.gz talos-obmc-linux-0e9c24ed7443d090e369a2eddfa13f7f0b5afbaf.zip |
dm: allow targets to request flushes regardless of underlying device support
Allow targets to override the 'supports flush' calculation.
Set 'flush_supported' if a target needs to receive flushes regardless of
whether or not its underlying devices have support.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 8bdbbfce759a..bdd65e97a129 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -212,6 +212,12 @@ struct dm_target { char *error; /* + * Set if this target needs to receive flushes regardless of + * whether or not its underlying devices have support. + */ + bool flush_supported:1; + + /* * Set if this target needs to receive discards regardless of * whether or not its underlying devices have support. */ |