Commit 223fd7d5 authored by Eric Biggers's avatar Eric Biggers Committed by sanglipeng
Browse files

f2fs: use memcpy_{to,from}_page() where possible

stable inclusion
from stable-v5.10.173
commit 33909b1a646d1f31d631ff4a77a7303317e4a82b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=33909b1a646d1f31d631ff4a77a7303317e4a82b



--------------------------------

[ Upstream commit b87846bd ]

This is simpler, and as a side effect it replaces several uses of
kmap_atomic() with its recommended replacement kmap_local_page().

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Reviewed-by: default avatarFabio M. De Francesco <fmdefrancesco@gmail.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: b1b98967 ("fs: f2fs: initialize fsdata in pagecache_write()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 37cfd90d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment