Skip to content
Snippets Groups Projects
Commit 5bb54d3b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman
Browse files

f2fs: open code allocate_segment_by_default


[ Upstream commit 8442d94b ]

allocate_segment_by_default has just two callers, which use very
different code pathes inside it based on the force paramter.  Just
open code the logic in the two callers using a new helper to decided
if a new segment should be allocated.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: 43563069 ("f2fs: check curseg->inited before write_sum_page in change_curseg")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c6ad7333
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment