Skip to content

Commit

Permalink
f2fs: add radix_tree_preload_end in error case
Browse files Browse the repository at this point in the history
To prevent excessive increase in preemption count
add radix_tree_preload_end in retry

Signed-off-by: Yohan Joung <yohan.joung@sk.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
  • Loading branch information
Yohan Joung authored and Jaegeuk Kim committed Apr 13, 2023
1 parent e1bb7d3 commit d09bd85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/f2fs/checkpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ static void __add_ino_entry(struct f2fs_sb_info *sbi, nid_t ino,
if (!e) {
if (!new) {
spin_unlock(&im->ino_lock);
radix_tree_preload_end();
goto retry;
}
e = new;
Expand Down

0 comments on commit d09bd85

Please sign in to comment.