diff options
author | Keith Busch <keith.busch@intel.com> | 2018-07-24 23:07:57 +0200 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2018-07-25 23:11:09 +0200 |
commit | 12e3129e29b406c41bc89231092a20d79dbf802c (patch) | |
tree | d774b3a77f6b9f457ae974847d55831172b1fb0f /crypto/ecdh.c | |
parent | MAINTAINERS: Add Jan Kara for filesystem DAX (diff) | |
download | linux-12e3129e29b406c41bc89231092a20d79dbf802c.tar.xz linux-12e3129e29b406c41bc89231092a20d79dbf802c.zip |
libnvdimm: Use max contiguous area for namespace size
This patch will find the max contiguous area to determine the largest
pmem namespace size that can be created. If the requested size exceeds
the largest available, ENOSPC error will be returned.
This fixes the allocation underrun error and wrong error return code
that have otherwise been observed as the following kernel warning:
WARNING: CPU: <CPU> PID: <PID> at drivers/nvdimm/namespace_devs.c:913 size_store
Fixes: a1f3e4d6a0c3 ("libnvdimm, region: update nd_region_available_dpa() for multi-pmem support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'crypto/ecdh.c')
0 files changed, 0 insertions, 0 deletions