summaryrefslogtreecommitdiff
path: root/drivers/nvdimm/nd.h
diff options
context:
space:
mode:
authorVishal Verma <vishal.l.verma@intel.com>2016-07-28 01:38:59 +0300
committerDan Williams <dan.j.williams@intel.com>2016-08-08 19:26:14 +0300
commitabe8b4e3cef88b8202641d63f5ad58141b970b0f (patch)
treeb52e23c0f87ac191907395db7d5fae85fd1383f7 /drivers/nvdimm/nd.h
parent68202c9f0ad6e16ee806fbadbc5838d55fe5aa5c (diff)
downloadlinux-abe8b4e3cef88b8202641d63f5ad58141b970b0f.tar.xz
nvdimm, btt: add a size attribute for BTTs
To be consistent with other namespaces, expose a 'size' attribute for BTT devices also. Cc: Dan Williams <dan.j.williams@intel.com> Reported-by: Linda Knippers <linda.knippers@hpe.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/nd.h')
-rw-r--r--drivers/nvdimm/nd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvdimm/nd.h b/drivers/nvdimm/nd.h
index 40476399d227..8024a0ef86d3 100644
--- a/drivers/nvdimm/nd.h
+++ b/drivers/nvdimm/nd.h
@@ -143,6 +143,7 @@ struct nd_btt {
struct nd_namespace_common *ndns;
struct btt *btt;
unsigned long lbasize;
+ u64 size;
u8 *uuid;
int id;
};