Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit beaa57dd authored by Chao Yu's avatar Chao Yu Committed by Jaegeuk Kim
Browse files

f2fs: fix to skip shrinking extent nodes



In f2fs_shrink_extent_tree we should stop shrink flow if we have already
shrunk enough nodes in extent cache.

Signed-off-by: default avatarChao Yu <chao2.yu@samsung.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent a6be014e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -620,7 +620,7 @@ unsigned int f2fs_shrink_extent_tree(struct f2fs_sb_info *sbi, int nr_shrink)
			write_unlock(&et->lock);

			if (node_cnt + tree_cnt >= nr_shrink)
				break;
				goto unlock_out;
		}
	}
unlock_out: