diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-07-15 13:08:21 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-08-05 08:08:07 -0700 |
commit | 86531d6b84bc096d5d9dbc23333df0ab8d347763 (patch) | |
tree | 337420cfa917add8aa0735bff2ee8780d416c6ac /fs/f2fs/checkpoint.c | |
parent | 727edac572034557d207b293a47de25145e3d58c (diff) | |
download | op-kernel-dev-86531d6b84bc096d5d9dbc23333df0ab8d347763.zip op-kernel-dev-86531d6b84bc096d5d9dbc23333df0ab8d347763.tar.gz |
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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 6032702..6fb696d 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)) { |