commit | ebd84d724c85f22037a5c9cb04b9e6631309cb78 | [log] [tgz] |
---|---|---|
author | Dan Williams <dan.j.williams@intel.com> | Thu Aug 11 00:41:51 2016 -0700 |
committer | Dan Williams <dan.j.williams@intel.com> | Tue Aug 23 22:58:51 2016 -0700 |
tree | 0838fcb7977aa2d5c7699792cf9f1050378ed6e6 | |
parent | af69f51e506f5ad3625c817ba2449a439bbe68ef [diff] |
dax: embed a struct device in dax_dev The kref in dax_dev can be made redundant if the final put_device() on the device associated with the dax_dev frees the dax_dev. This can be accomplished by embedding a struct device in struct dax_dev, open coding device_create() and specifying a custom release method. Signed-off-by: Dan Williams <dan.j.williams@intel.com>