f2fs: make f2fs_sync_inode_meta() static
After commit 26b5a07919
("f2fs: cleanup dirty pages if recover failed"),
f2fs_sync_inode_meta() is only used in checkpoint.c, so
f2fs_sync_inode_meta() should only be visible inside. Delete the
declaration in the header file and change f2fs_sync_inode_meta()
to static.
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Родитель
ffe78bbd51
Коммит
6063037506
|
@ -1133,7 +1133,7 @@ retry:
|
|||
goto retry;
|
||||
}
|
||||
|
||||
int f2fs_sync_inode_meta(struct f2fs_sb_info *sbi)
|
||||
static int f2fs_sync_inode_meta(struct f2fs_sb_info *sbi)
|
||||
{
|
||||
struct list_head *head = &sbi->inode_list[DIRTY_META];
|
||||
struct inode *inode;
|
||||
|
|
|
@ -3737,7 +3737,6 @@ void f2fs_set_dirty_device(struct f2fs_sb_info *sbi, nid_t ino,
|
|||
unsigned int devidx, int type);
|
||||
bool f2fs_is_dirty_device(struct f2fs_sb_info *sbi, nid_t ino,
|
||||
unsigned int devidx, int type);
|
||||
int f2fs_sync_inode_meta(struct f2fs_sb_info *sbi);
|
||||
int f2fs_acquire_orphan_inode(struct f2fs_sb_info *sbi);
|
||||
void f2fs_release_orphan_inode(struct f2fs_sb_info *sbi);
|
||||
void f2fs_add_orphan_inode(struct inode *inode);
|
||||
|
|
Загрузка…
Ссылка в новой задаче