projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f031221
)
f2fs: use filemap_check_errors()
author
Miklos Szeredi
<
[email protected]
>
Fri, 16 Sep 2016 10:44:21 +0000
(12:44 +0200)
committer
Miklos Szeredi
<
[email protected]
>
Fri, 16 Sep 2016 10:44:21 +0000
(12:44 +0200)
Signed-off-by: Miklos Szeredi <
[email protected]
>
Cc: Jaegeuk Kim <
[email protected]
>
fs/f2fs/node.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/node.c
b/fs/f2fs/node.c
index f75d197d5beb05366e876876e09521db7ac3930c..67ed2192f926932de568758e2d338c0006fc50d0 100644
(file)
--- a/
fs/f2fs/node.c
+++ b/
fs/f2fs/node.c
@@
-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;
struct pagevec pvec;
- int ret2
= 0
, ret = 0;
+ int ret2, ret = 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();
}
- if (unlikely(test_and_clear_bit(AS_ENOSPC, &NODE_MAPPING(sbi)->flags)))
- ret2 = -ENOSPC;
- if (unlikely(test_and_clear_bit(AS_EIO, &NODE_MAPPING(sbi)->flags)))
- ret2 = -EIO;
+ ret2 = filemap_check_errors(NODE_MAPPING(sbi));
if (!ret)
ret = ret2;
return ret;