f2fs: avoid down_write on nat_tree_lock during checkpoint
authorJaegeuk Kim <jaegeuk@kernel.org>
Mon, 13 Dec 2021 21:28:40 +0000 (13:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:48:50 +0000 (08:48 +0100)
commite553323198258f60adee185b5819345ba1ced377
treef2995ef4ecd641d35761c903da45e04c25cf9844
parent31b5793ca2de75338f32904c385ea0ed7b19f501
f2fs: avoid down_write on nat_tree_lock during checkpoint

[ Upstream commit 0df035c7208c5e3e2ae7685548353ae536a19015 ]

Let's cache nat entry if there's no lock contention only.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: 3aa51c61cb4a ("f2fs: retry to update the inode page given data corruption")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/node.c