summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2024-02-20 12:48:44 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2024-02-27 09:41:15 -0800
commit4e0197f9932f70cc7be8744aa0ed4dd9b5d97d85 (patch)
tree9a309aae7e9c99cc2dcd8a9a4b6ca5eb75db6c8f /fs/f2fs/segment.h
parent3ae768a132c70151fd5e6cbeea8a9e6bf08a1f0c (diff)
downloadlinux-stable-4e0197f9932f70cc7be8744aa0ed4dd9b5d97d85.tar.gz
linux-stable-4e0197f9932f70cc7be8744aa0ed4dd9b5d97d85.tar.bz2
linux-stable-4e0197f9932f70cc7be8744aa0ed4dd9b5d97d85.zip
f2fs: kill heap-based allocation
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>
Diffstat (limited to 'fs/f2fs/segment.h')
-rw-r--r--fs/f2fs/segment.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h
index febcfbadcdfa..abfb00955b60 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.