* + fs-coredump-use-kmap_local_page.patch added to -mm tree
@ 2021-02-04 0:15 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2021-02-04 0:15 UTC (permalink / raw)
To: ira.weiny, mm-commits, viro
The patch titled
Subject: fs/coredump: use kmap_local_page()
has been added to the -mm tree. Its filename is
fs-coredump-use-kmap_local_page.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/fs-coredump-use-kmap_local_page.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/fs-coredump-use-kmap_local_page.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Ira Weiny <ira.weiny@intel.com>
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.
Link: https://lkml.kernel.org/r/20210203223328.558945-1-ira.weiny@intel.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
fs/coredump.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/fs/coredump.c~fs-coredump-use-kmap_local_page
+++ a/fs/coredump.c
@@ -894,10 +894,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 ira.weiny@intel.com are
fs-coredump-use-kmap_local_page.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-04 0:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 0:15 + fs-coredump-use-kmap_local_page.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).