summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2021-12-13 14:16:32 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-01-04 13:20:49 -0800
commita9419b63bf414775e8aeee95d8c4a5e0df690748 (patch)
tree704a3b3638bc8323c539fb8b9ea6d62bd8db7c81 /fs/f2fs/checkpoint.c
parent0df035c7208c5e3e2ae7685548353ae536a19015 (diff)
downloadlinux-stable-a9419b63bf414775e8aeee95d8c4a5e0df690748.tar.gz
linux-stable-a9419b63bf414775e8aeee95d8c4a5e0df690748.tar.bz2
linux-stable-a9419b63bf414775e8aeee95d8c4a5e0df690748.zip
f2fs: do not bother checkpoint by f2fs_get_node_info
This patch tries to mitigate lock contention between f2fs_write_checkpoint and f2fs_get_node_info along with nat_tree_lock. The idea is, if checkpoint is currently running, other threads that try to grab nat_tree_lock would be better to wait for checkpoint. Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index f1693d45bb78..55e3c54d99c1 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -664,7 +664,7 @@ static int recover_orphan_inode(struct f2fs_sb_info *sbi, nid_t ino)
/* truncate all the data during iput */
iput(inode);
- err = f2fs_get_node_info(sbi, ino, &ni);
+ err = f2fs_get_node_info(sbi, ino, &ni, false);
if (err)
goto err_out;