]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dax: add region 'id', 'size', and 'align' attributes
authorDan Williams <dan.j.williams@intel.com>
Sat, 17 Dec 2016 22:50:04 +0000 (14:50 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 17 Dec 2016 22:50:04 +0000 (14:50 -0800)
commitd7fe1a67f658b50ec98ee1afb86df7b35c2b2593
tree2831af61dca813ce22e362528adee7d037d0c80f
parent868f036fee4b1f934117197fb93461d2c968ffec
dax: add region 'id', 'size', and 'align' attributes

While this information is available by looking at the nvdimm parent
device that may not always be the case when/if we add support for other
memory regions. Tooling should not depend on walking a given ancestor
topology that is not guaranteed by the device's class. For example, a
device-dax instance will always have a dax_region parent, but it may not
always have a libnvdimm "dax" device as a grandparent.

Reported-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/dax.c