mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 00:24:12 +08:00
f2fs: remove some dead code
'ret' is known to be 0 at the point. So these lines of code should just be removed. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
1223e432d9
commit
08c3eab525
@ -2066,7 +2066,6 @@ int f2fs_wait_on_node_pages_writeback(struct f2fs_sb_info *sbi,
|
||||
struct list_head *head = &sbi->fsync_node_list;
|
||||
unsigned long flags;
|
||||
unsigned int cur_seq_id = 0;
|
||||
int ret2, ret = 0;
|
||||
|
||||
while (seq_id && cur_seq_id < seq_id) {
|
||||
spin_lock_irqsave(&sbi->fsync_node_lock, flags);
|
||||
@ -2087,16 +2086,9 @@ int f2fs_wait_on_node_pages_writeback(struct f2fs_sb_info *sbi,
|
||||
f2fs_wait_on_page_writeback(page, NODE, true, false);
|
||||
|
||||
put_page(page);
|
||||
|
||||
if (ret)
|
||||
break;
|
||||
}
|
||||
|
||||
ret2 = filemap_check_errors(NODE_MAPPING(sbi));
|
||||
if (!ret)
|
||||
ret = ret2;
|
||||
|
||||
return ret;
|
||||
return filemap_check_errors(NODE_MAPPING(sbi));
|
||||
}
|
||||
|
||||
static int f2fs_write_node_pages(struct address_space *mapping,
|
||||
|
Loading…
Reference in New Issue
Block a user