]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm, region: hide persistence_domain when unknown
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 Mar 2018 21:06:23 +0000 (14:06 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 21 Mar 2018 21:06:23 +0000 (14:06 -0700)
commit5d3815a276973cb8ee00c045c7320e4a7bd3adeb
tree4508afcf4dc40f6cdfdb4c1c4b0db58f1cb9ce06
parent5f796e734e00dc5036c877d1591d9514ed6b1ba6
libnvdimm, region: hide persistence_domain when unknown

Similar to other region attributes, do not emit the persistence_domain
attribute if its contents are empty.

Fixes: c6218ed27740 ("libnvdimm: expose platform persistence attr...")
Cc: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/region_devs.c