]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: remove struct segment_allocation default_salloc_ops
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Nov 2022 09:43:44 +0000 (10:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:05 +0000 (19:51 +0100)
commit634ffe866196ffd0abab800a0883d835eff79d59
tree5dda96c7e0d1f9f4b2707fab4065a5f12a83896f
parent3fd2fc9282dc0f96965edceb264123a50ec60f17
f2fs: remove struct segment_allocation default_salloc_ops

[ Upstream commit 1c8a8ec0a0e9a1176022a35c4daf04fe1594d270 ]

There is only  single instance of these ops, so remove the indirection
and call allocate_segment_by_default directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: 43563069e1c1 ("f2fs: check curseg->inited before write_sum_page in change_curseg")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/segment.c
fs/f2fs/segment.h