linux/fs/ext2
Fabio M. De Francesco 96b87cbdeb 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 <ira.weiny@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Message-Id: <20221231174205.8492-1-fmdefrancesco@gmail.com>
2023-01-09 10:39:53 +01:00
..
acl.c fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
acl.h fs: pass dentry to set acl method 2022-10-19 12:55:42 +02:00
balloc.c fs/ext2: Fix code indentation 2022-11-28 15:01:48 +01:00
dir.c fs/ext2: Replace kmap_atomic() with kmap_local_page() 2023-01-09 10:39:53 +01:00
ext2.h ext2: remove nobh support 2022-08-02 12:34:04 -04:00
file.c fs: rename current get acl method 2022-10-20 10:13:27 +02:00
ialloc.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
inode.c \n 2022-12-12 20:32:50 -08:00
ioctl.c ext2: convert to fileattr 2021-04-12 15:04:29 +02:00
Kconfig ext2: use iomap_fiemap to implement ->fiemap 2021-07-27 11:00:32 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
namei.c fs: rename current get acl method 2022-10-20 10:13:27 +02:00
super.c fs/ext2: Fix code indentation 2022-11-28 15:01:48 +01:00
symlink.c ext2: code cleanup by removing ifdef macro surrounding 2020-05-22 15:11:00 +02:00
xattr.c ext2: avoid deleting xattr block that is being reused 2022-08-02 23:56:25 -04:00
xattr.h ext2: code cleanup by removing ifdef macro surrounding 2020-05-22 15:11:00 +02:00
xattr_security.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00
xattr_trusted.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00
xattr_user.c acl: handle idmapped mounts 2021-01-24 14:27:17 +01:00