Skip to contentSkip to conversation

fs-coredump-use-kmap_local_page.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 27, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: fs/coredump: use kmap_local_page()
has been removed from the -mm tree. Its filename was
fs-coredump-use-kmap_local_page.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Ira Weiny <[email protected]>
Subject: fs/coredump: use kmap_local_page()

In dump_user_range() there is no reason for the mapping to be global. Use kmap_local_page() rather than kmap.

---

 fs/coredump.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/coredump.c renamed from fs/coredump.c~fs-coredump-use-kmap_local_page +2 -2
@@ -897,10 +897,10 @@ int dump_user_range(struct coredump_para
 		 */
 		page = get_dump_page(addr);
 		if (page) {
-			void *kaddr = kmap(page);
+			void *kaddr = kmap_local_page(page);
 
 			stop = !dump_emit(cprm, kaddr, PAGE_SIZE);
-			kunmap(page);
+			kunmap_local(kaddr);
 			put_page(page);
 		} else {
 			stop = !dump_skip(cprm, PAGE_SIZE);

_

Patches currently in -mm which might be from [email protected] are

mm-highmem-remove-deprecated-kmap_atomic.patch