f2fs: use filemap_check_errors()
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Cc: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
f031221001
commit
280db3c88c
@ -1513,7 +1513,7 @@ int wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, nid_t ino)
|
|||||||
{
|
{
|
||||||
pgoff_t index = 0, end = ULONG_MAX;
|
pgoff_t index = 0, end = ULONG_MAX;
|
||||||
struct pagevec pvec;
|
struct pagevec pvec;
|
||||||
int ret2 = 0, ret = 0;
|
int ret2, ret = 0;
|
||||||
|
|
||||||
pagevec_init(&pvec, 0);
|
pagevec_init(&pvec, 0);
|
||||||
|
|
||||||
@ -1542,10 +1542,7 @@ int wait_on_node_pages_writeback(struct f2fs_sb_info *sbi, nid_t ino)
|
|||||||
cond_resched();
|
cond_resched();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(test_and_clear_bit(AS_ENOSPC, &NODE_MAPPING(sbi)->flags)))
|
ret2 = filemap_check_errors(NODE_MAPPING(sbi));
|
||||||
ret2 = -ENOSPC;
|
|
||||||
if (unlikely(test_and_clear_bit(AS_EIO, &NODE_MAPPING(sbi)->flags)))
|
|
||||||
ret2 = -EIO;
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = ret2;
|
ret = ret2;
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user