aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorFabio M. De Francesco <[email protected]>2022-06-27 19:48:49 +0200
committerDavid Sterba <[email protected]>2022-07-25 17:45:41 +0200
commit4cb2e5e8fe47e3f31e00d8bf0e6e4acff26f520f (patch)
tree1a7107eade2100fc1447520eb16c2d5d32408ed3 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent5a6e6e7ce6b7df615a971f30bf4215b2dc389612 (diff)
btrfs: replace kmap_atomic() with kmap_local_page()
kmap_atomic() is being deprecated in favor of kmap_local_page() where it is feasible. With kmap_local_page() mappings are per thread, CPU local, and not globally visible. The last use of kmap_atomic is in inode.c where the context is atomic [1] and can be safely replaced by kmap_local_page. Tested with xfstests on a QEMU + KVM 32-bits VM with 4GB RAM and booting a kernel with HIGHMEM64GB enabled. [1] https://lore.kernel.org/linux-btrfs/[email protected]/ Suggested-by: Ira Weiny <[email protected]> Reviewed-by: Ira Weiny <[email protected]> Signed-off-by: Fabio M. De Francesco <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions