diff options
author | Fabio M. De Francesco <[email protected]> | 2022-12-31 18:42:05 +0100 |
---|---|---|
committer | Jan Kara <[email protected]> | 2023-01-09 10:39:53 +0100 |
commit | 96b87cbdeb50e47c25eae1e8b209857e6acf34ea (patch) | |
tree | 64ae41f8ceacd163f5e383e60efff245cb440af3 /scripts/generate_rust_analyzer.py | |
parent | b316c443b4e85f67e34807e11ca90049d6f6a098 (diff) |
fs/ext2: Replace kmap_atomic() with kmap_local_page()
kmap_atomic() is deprecated in favor of kmap_local_page(). Therefore,
replace kmap_atomic() with kmap_local_page().
kmap_atomic() is implemented like a kmap_local_page() which also disables
page-faults and preemption (the latter only for !PREEMPT_RT kernels).
However, the code within the mapping and un-mapping in ext2_make_empty()
does not depend on the above-mentioned side effects.
Therefore, a mere replacement of the old API with the new one is all it
is required (i.e., there is no need to explicitly add any calls to
pagefault_disable() and/or preempt_disable()).
Suggested-by: Ira Weiny <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Fabio M. De Francesco <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Message-Id: <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions