summaryrefslogtreecommitdiff
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-07-15 23:08:21 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2015-08-05 18:08:07 +0300
commit86531d6b84bc096d5d9dbc23333df0ab8d347763 (patch)
tree337420cfa917add8aa0735bff2ee8780d416c6ac /fs/f2fs/checkpoint.c
parent727edac572034557d207b293a47de25145e3d58c (diff)
downloadlinux-86531d6b84bc096d5d9dbc23333df0ab8d347763.tar.xz
f2fs: callers take care of the page from bio error
This patch changes for a caller to handle the page after its bio gets an error. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
-rw-r--r--fs/f2fs/checkpoint.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c
index 60327027137f..6fb696da42e8 100644
--- a/fs/f2fs/checkpoint.c
+++ b/fs/f2fs/checkpoint.c
@@ -69,8 +69,10 @@ repeat:
fio.page = page;
- if (f2fs_submit_page_bio(&fio))
+ if (f2fs_submit_page_bio(&fio)) {
+ f2fs_put_page(page, 1);
goto repeat;
+ }
lock_page(page);
if (unlikely(page->mapping != mapping)) {