diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-01-10 10:53:55 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-01-10 10:53:55 -0500 |
commit | 8b63b6bfc1a551acf154061699028c7032d7890c (patch) | |
tree | 16882e9bc9e35eacb870a6d8a71617e579c4ffdc /drivers/nvdimm/nd.h | |
parent | e07ecd76d4db7bda1e9495395b2110a3fe28845a (diff) | |
parent | 55f5560d8c18fe33fc169f8d244a9247dcac7612 (diff) |
Merge branch 'for-4.5/block-dax' into for-4.5/libnvdimm
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r-- | drivers/nvdimm/nd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h index e4e9f9ae0cc8..ba1633b9da31 100644 --- a/drivers/nvdimm/nd.h +++ b/drivers/nvdimm/nd.h | |||
@@ -31,6 +31,12 @@ enum { | |||
31 | INT_LBASIZE_ALIGNMENT = 64, | 31 | INT_LBASIZE_ALIGNMENT = 64, |
32 | }; | 32 | }; |
33 | 33 | ||
34 | struct nd_poison { | ||
35 | u64 start; | ||
36 | u64 length; | ||
37 | struct list_head list; | ||
38 | }; | ||
39 | |||
34 | struct nvdimm_drvdata { | 40 | struct nvdimm_drvdata { |
35 | struct device *dev; | 41 | struct device *dev; |
36 | int nsindex_size; | 42 | int nsindex_size; |
@@ -256,6 +262,8 @@ int nvdimm_namespace_attach_btt(struct nd_namespace_common *ndns); | |||
256 | int nvdimm_namespace_detach_btt(struct nd_namespace_common *ndns); | 262 | int nvdimm_namespace_detach_btt(struct nd_namespace_common *ndns); |
257 | const char *nvdimm_namespace_disk_name(struct nd_namespace_common *ndns, | 263 | const char *nvdimm_namespace_disk_name(struct nd_namespace_common *ndns, |
258 | char *name); | 264 | char *name); |
265 | void nvdimm_namespace_add_poison(struct nd_namespace_common *ndns, | ||
266 | struct badblocks *bb, resource_size_t offset); | ||
259 | int nd_blk_region_init(struct nd_region *nd_region); | 267 | int nd_blk_region_init(struct nd_region *nd_region); |
260 | void __nd_iostat_start(struct bio *bio, unsigned long *start); | 268 | void __nd_iostat_start(struct bio *bio, unsigned long *start); |
261 | static inline bool nd_iostat_start(struct bio *bio, unsigned long *start) | 269 | static inline bool nd_iostat_start(struct bio *bio, unsigned long *start) |