summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorJia Yang <jiayang5@huawei.com>2020-07-21 11:49:14 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2020-07-23 20:22:37 -0700
commit68e79baf41f89fcdf9edf9bf3d65a71b667d066c (patch)
tree20d36b01ee603be46faa48e6d5a30267a4a7c3de /fs
parent9af846486d781a63de025a5f502c515268e48790 (diff)
downloadlinux-68e79baf41f89fcdf9edf9bf3d65a71b667d066c.tar.gz
linux-68e79baf41f89fcdf9edf9bf3d65a71b667d066c.tar.bz2
linux-68e79baf41f89fcdf9edf9bf3d65a71b667d066c.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/f2fs.h2
-rw-r--r--fs/f2fs/node.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index 3d9dd32a176a..927006d00a63 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -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_ra(struct page *parent, int start);
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,
struct writeback_control *wbc, bool atomic,
unsigned int *seq_id);
diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c
index 3ffe8d83f29f..07a4dc743416 100644
--- a/fs/f2fs/node.c
+++ b/fs/f2fs/node.c
@@ -1816,12 +1816,11 @@ static bool flush_dirty_inode(struct page *page)
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;
struct pagevec pvec;
int nr_pages;
- int ret = 0;
pagevec_init(&pvec);
@@ -1860,7 +1859,6 @@ continue_unlock:
pagevec_release(&pvec);
cond_resched();
}
- return ret;
}
int f2fs_sync_node_pages(struct f2fs_sb_info *sbi,