Skip to content

Commit 68e79ba

Browse files
Jia YangJaegeuk Kim
authored andcommitted
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 <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 9af8464 commit 68e79ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

fs/f2fs/f2fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3282,7 +3282,7 @@ void f2fs_ra_node_page(struct f2fs_sb_info *sbi, nid_t nid);
32823282
struct page *f2fs_get_node_page(struct f2fs_sb_info *sbi, pgoff_t nid);
32833283
struct page *f2fs_get_node_page_ra(struct page *parent, int start);
32843284
int f2fs_move_node_page(struct page *node_page, int gc_type);
3285-
int f2fs_flush_inline_data(struct f2fs_sb_info *sbi);
3285+
void f2fs_flush_inline_data(struct f2fs_sb_info *sbi);
32863286
int f2fs_fsync_node_pages(struct f2fs_sb_info *sbi, struct inode *inode,
32873287
struct writeback_control *wbc, bool atomic,
32883288
unsigned int *seq_id);

fs/f2fs/node.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,12 +1816,11 @@ static bool flush_dirty_inode(struct page *page)
18161816
return true;
18171817
}
18181818

1819-
int f2fs_flush_inline_data(struct f2fs_sb_info *sbi)
1819+
void f2fs_flush_inline_data(struct f2fs_sb_info *sbi)
18201820
{
18211821
pgoff_t index = 0;
18221822
struct pagevec pvec;
18231823
int nr_pages;
1824-
int ret = 0;
18251824

18261825
pagevec_init(&pvec);
18271826

@@ -1860,7 +1859,6 @@ int f2fs_flush_inline_data(struct f2fs_sb_info *sbi)
18601859
pagevec_release(&pvec);
18611860
cond_resched();
18621861
}
1863-
return ret;
18641862
}
18651863

18661864
int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,

0 commit comments

Comments
 (0)