linux-stable/drivers/nvdimm
Dan Williams 865ff3e613 nvdimm/region: Fix default alignment for small regions
[ Upstream commit d9d290d7e6 ]

In preparation for removing BLK aperture support the NVDIMM unit tests
discovered that the default alignment can be set higher than the
capacity of the region. Fall back to PAGE_SIZE in that case.

Given this has not been seen in the wild, elide notifying -stable.

Fixes: 2522afb86a ("libnvdimm/region: Introduce an 'align' attribute")
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/164688416128.2879318.17890707310125575258.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 13:58:27 +02:00
..
badrange.c
blk.c nvdimm/blk: add error handling support for add_disk() 2021-11-04 05:48:49 -06:00
btt.c for-5.16/drivers-2021-11-09 2021-11-09 11:24:08 -08:00
btt.h
btt_devs.c libnvdimm/labels: Add uuid helpers 2021-09-21 13:44:55 -07:00
bus.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
claim.c
core.c cxl for v5.16 2021-11-08 11:49:48 -08:00
dax_devs.c
dimm.c
dimm_devs.c
e820.c
Kconfig dax: remove CONFIG_DAX_DRIVER 2021-12-04 08:58:51 -08:00
label.c libnvdimm/labels: Introduce CXL labels 2021-09-21 13:44:56 -07:00
label.h libnvdimm/labels: Introduce CXL labels 2021-09-21 13:44:56 -07:00
Makefile
namespace_devs.c libnvdimm/label: Add a helper for nlabel validation 2021-09-21 13:44:55 -07:00
nd-core.h libnvdimm/labels: Add uuid helpers 2021-09-21 13:44:55 -07:00
nd.h libnvdimm/labels: Introduce CXL labels 2021-09-21 13:44:56 -07:00
nd_virtio.c
of_pmem.c
pfn.h
pfn_devs.c libnvdimm/labels: Add uuid helpers 2021-09-21 13:44:55 -07:00
pmem.c dax: remove the copy_from_iter and copy_to_iter methods 2021-12-18 08:04:53 -08:00
pmem.h
region.c
region_devs.c nvdimm/region: Fix default alignment for small regions 2022-04-08 13:58:27 +02:00
security.c
virtio_pmem.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_pmem.h