]> git.baikalelectronics.ru Git - kernel.git/commit
fs/coredump: use kmap_local_page()
authorIra Weiny <ira.weiny@intel.com>
Fri, 26 Feb 2021 01:22:22 +0000 (17:22 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:05 +0000 (09:41 -0800)
commitdeb7e7827a11b63f5534c3759890041b4184aacf
tree774aa3530d912f7c900e396ed4d36049cfdfc508
parent33c3df48f423ec7ced48be38847db8888967135e
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/coredump.c