WSL2-Linux-Kernel/drivers/nvdimm
Dan Williams be8ab90a3a 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 14:23:48 +02:00
..
Kconfig
Makefile
badrange.c
blk.c
btt.c nvdimm/btt: do not call del_gendisk() if not needed 2021-11-18 19:17:06 +01:00
btt.h
btt_devs.c
bus.c
claim.c
core.c
dax_devs.c
dimm.c
dimm_devs.c
e820.c
label.c
label.h
namespace_devs.c cxl for v5.15 2021-09-09 11:48:27 -07:00
nd-core.h
nd.h
nd_virtio.c
of_pmem.c
pfn.h
pfn_devs.c
pmem.c nvdimm/pmem: cleanup the disk if pmem_release_disk() is yet assigned 2021-11-18 19:17:07 +01:00
pmem.h
region.c
region_devs.c nvdimm/region: Fix default alignment for small regions 2022-04-08 14:23:48 +02:00
security.c
virtio_pmem.c
virtio_pmem.h