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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Jan 2022 21:20:19 +0000 (13:20 -0800)
commit0df035c7208c5e3e2ae7685548353ae536a19015
tree6b91d03491047ae54df65ac58ef6fa9b572c5d0d
parent7377e853967ba45bf409e3b5536624d2cbc99f21
f2fs: avoid down_write on nat_tree_lock during checkpoint

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>
fs/f2fs/node.c