]> Gentwo Git Trees - linux/.git/commit
s390/dcssblk: Add DAX support
authorGerald Schaefer <gerald.schaefer@linux.ibm.com>
Tue, 9 Sep 2025 13:46:26 +0000 (15:46 +0200)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 16 Sep 2025 14:56:39 +0000 (16:56 +0200)
commit5b27dfb1d7b59db9e72766c990a3ee80e39e4f69
tree60cf5f7aafae0f9d3db7b86607e85d445bc57d3a
parent5450abb0dea4f9fb432dea2ca92ea7a9bd25650b
s390/dcssblk: Add DAX support

With ZONE_DEVICE now available for s390, struct pages can be allocated
for proper DAX support in dcssblk driver via devm_memremap_pages().

Adding struct pages for a range requires that the range is aligned to
SUBSECTION_SIZE, which is defined as 2 MB in common code. Therefore,
only enable DAX support and allocate struct pages for DCSS ranges that
are aligned to 2 MB.

Signed-off-by: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/block/Kconfig
drivers/s390/block/dcssblk.c