]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Replace kmap() with kmap_local_page()
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Tue, 28 Jun 2022 18:24:26 +0000 (20:24 +0200)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 12 Jul 2022 14:06:18 +0000 (10:06 -0400)
commit7455737614b74235093c47431f0d86a9e3f6bf97
tree29e2033f24c9f56e2a723297999e59d6cf06a2c1
parent4c066d9797bfa3bd3953c21bec01c88ec2922b74
nfs: Replace kmap() with kmap_local_page()

The use of kmap() is being deprecated in favor of kmap_local_page().

With kmap_local_page(), the mapping is per thread, CPU local and not
globally visible. Furthermore, the mapping can be acquired from any context
(including interrupts).

Therefore, use kmap_local_page() in nfs_do_filldir() because this mapping
is per thread, CPU local, and not globally visible.

Suggested-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/dir.c