mirror of https://gitee.com/openkylin/linux.git
f2fs: Change the type of f2fs_flush_inline_data() to void
The return value of f2fs_flush_inline_data() is not used, so delete it. Signed-off-by: Jia Yang <jiayang5@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
9af846486d
commit
68e79baf41
|
@ -3282,7 +3282,7 @@ void f2fs_ra_node_page(struct f2fs_sb_info *sbi, nid_t nid);
|
||||||
struct page *f2fs_get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid);
|
struct page *f2fs_get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid);
|
||||||
struct page *f2fs_get_node_page_ra(struct page *parent, int start);
|
struct page *f2fs_get_node_page_ra(struct page *parent, int start);
|
||||||
int f2fs_move_node_page(struct page *node_page, int gc_type);
|
int f2fs_move_node_page(struct page *node_page, int gc_type);
|
||||||
int f2fs_flush_inline_data(struct f2fs_sb_info *sbi);
|
void f2fs_flush_inline_data(struct f2fs_sb_info *sbi);
|
||||||
int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
|
int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
|
||||||
struct writeback_control *wbc, bool atomic,
|
struct writeback_control *wbc, bool atomic,
|
||||||
unsigned int *seq_id);
|
unsigned int *seq_id);
|
||||||
|
|
|
@ -1816,12 +1816,11 @@ static bool flush_dirty_inode(struct page *page)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int f2fs_flush_inline_data(struct f2fs_sb_info *sbi)
|
void f2fs_flush_inline_data(struct f2fs_sb_info *sbi)
|
||||||
{
|
{
|
||||||
pgoff_t index = 0;
|
pgoff_t index = 0;
|
||||||
struct pagevec pvec;
|
struct pagevec pvec;
|
||||||
int nr_pages;
|
int nr_pages;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
pagevec_init(&pvec);
|
pagevec_init(&pvec);
|
||||||
|
|
||||||
|
@ -1860,7 +1859,6 @@ int f2fs_flush_inline_data(struct f2fs_sb_info *sbi)
|
||||||
pagevec_release(&pvec);
|
pagevec_release(&pvec);
|
||||||
cond_resched();
|
cond_resched();
|
||||||
}
|
}
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,
|
int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,
|
||||||
|
|
Loading…
Reference in New Issue