mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
f2fs: Remove unused curseg_segno() and curseg_alloc_type()
The only callers of curseg_segno() and curseg_alloc_type() were removed by
commit 5a4fed7cd9 ("f2fs: simplify do_checkpoint"); both helpers have
been unused since then.
Being static inline functions they do not trigger -Wunused-function, so
the dead code has gone unnoticed. Remove them. No functional change.
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9ec09d5f4b
commit
0f046e45af
|
|
@ -796,20 +796,6 @@ F2FS_IPU_POLICY(F2FS_IPU_ASYNC);
|
|||
F2FS_IPU_POLICY(F2FS_IPU_NOCACHE);
|
||||
F2FS_IPU_POLICY(F2FS_IPU_HONOR_OPU_WRITE);
|
||||
|
||||
static inline unsigned int curseg_segno(struct f2fs_sb_info *sbi,
|
||||
int type)
|
||||
{
|
||||
struct curseg_info *curseg = CURSEG_I(sbi, type);
|
||||
return curseg->segno;
|
||||
}
|
||||
|
||||
static inline unsigned char curseg_alloc_type(struct f2fs_sb_info *sbi,
|
||||
int type)
|
||||
{
|
||||
struct curseg_info *curseg = CURSEG_I(sbi, type);
|
||||
return curseg->alloc_type;
|
||||
}
|
||||
|
||||
static inline bool valid_main_segno(struct f2fs_sb_info *sbi,
|
||||
unsigned int segno)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user