diff options
author | Fabio M. De Francesco <fmdefrancesco@gmail.com> | 2022-06-28 20:24:26 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2022-07-12 10:06:18 -0400 |
commit | c77c738c37d0fa8380a671613630298d71099180 (patch) | |
tree | 29e2033f24c9f56e2a723297999e59d6cf06a2c1 /fs/nfs/fs_context.c | |
parent | 064109db53ecc5d88621d02f36da9f33ca0d64bd (diff) | |
download | linux-c77c738c37d0fa8380a671613630298d71099180.tar.bz2 |
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>
Diffstat (limited to 'fs/nfs/fs_context.c')
0 files changed, 0 insertions, 0 deletions