diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2024-02-20 12:48:44 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-12 11:12:28 +0200 |
commit | 066cec37094d0d943f5e601786bb21820b1971b1 (patch) | |
tree | 326d6f2c812b6b39dac2f609480f6f13eb22e579 /fs/f2fs/segment.h | |
parent | 61330214b227cf2b473009b7dd563ee15043dea6 (diff) | |
download | linux-066cec37094d0d943f5e601786bb21820b1971b1.tar.gz linux-066cec37094d0d943f5e601786bb21820b1971b1.tar.bz2 linux-066cec37094d0d943f5e601786bb21820b1971b1.zip |
f2fs: kill heap-based allocation
[ Upstream commit 4e0197f9932f70cc7be8744aa0ed4dd9b5d97d85 ]
No one uses this feature. Let's kill it.
Reviewed-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: aa4074e8fec4 ("f2fs: fix block migration when section is not aligned to pow2")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r-- | fs/f2fs/segment.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 61fa12f12ffd..93ffb62e45f4 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -137,16 +137,6 @@ static inline void sanity_check_seg_type(struct f2fs_sb_info *sbi, ((sectors) >> F2FS_LOG_SECTORS_PER_BLOCK) /* - * indicate a block allocation direction: RIGHT and LEFT. - * RIGHT means allocating new sections towards the end of volume. - * LEFT means the opposite direction. - */ -enum { - ALLOC_RIGHT = 0, - ALLOC_LEFT -}; - -/* * In the victim_sel_policy->alloc_mode, there are three block allocation modes. * LFS writes data sequentially with cleaning operations. * SSR (Slack Space Recycle) reuses obsolete space without cleaning operations. |