libnvdimm-pfn_dev-increase-max_struct_page_size.patch removed from -mm tree
The quilt patch titled
Subject: libnvdimm/pfn_dev: increase MAX_STRUCT_PAGE_SIZE
has been removed from the -mm tree. Its filename was
libnvdimm-pfn_dev-increase-max_struct_page_size.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Alexander Potapenko <[email protected]>
Subject: libnvdimm/pfn_dev: increase MAX_STRUCT_PAGE_SIZE
Date: Thu, 15 Sep 2022 17:03:44 +0200
KMSAN adds extra metadata fields to struct page, so it does not fit into 64 bytes anymore.
This change leads to increased memory consumption of the nvdimm driver, regardless of whether the kernel is built with KMSAN or not.
---
drivers/nvdimm/nd.h | 2 +- drivers/nvdimm/pfn_devs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/nvdimm/nd.h renamed from drivers/nvdimm/nd.h~libnvdimm-pfn_dev-increase-max_struct_page_size +1 -1
@@ -652,7 +652,7 @@ void devm_namespace_disable(struct devic struct nd_namespace_common *ndns);#if IS_ENABLED (CONFIG_ND_CLAIM )/* max struct page size independent of kernel config */ -#define MAX_STRUCT_PAGE_SIZE 64 +#define MAX_STRUCT_PAGE_SIZE 128int nvdimm_setup_pfn (struct nd_pfn *nd_pfn,struct dev_pagemap *pgmap);#else static inline int nvdimm_setup_pfn(struct nd_pfn *nd_pfn,
drivers/nvdimm/pfn_devs.c renamed from drivers/nvdimm/pfn_devs.c~libnvdimm-pfn_dev-increase-max_struct_page_size +1 -1
@@ -787,7 +787,7 @@ static int nd_pfn_init(struct nd_pfn *nd* when populating the vmemmap. This *should* be equal to * PMD_SIZE for most architectures. * -* Also make sure size of struct page is less than 64. We +* Also make sure size of struct page is less than 128. We * want to make sure we use large enough size here so that * we don't have a dynamic reserve space depending on * struct page size. But we also want to make sure we notice
_
Patches currently in -mm which might be from [email protected] are