From: Jaegeuk Kim Date: Thu, 22 Oct 2015 02:00:31 +0000 (-0700) Subject: f2fs: don't need to submit bio on error case X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b246fb0f60d318cec6901a0326b94b50d5e1dcb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git f2fs: don't need to submit bio on error case If commit_atomic_write is failed, we don't need to submit any bio. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 7835e41868f0..7efd96ad9aac 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -249,11 +249,11 @@ int commit_inmem_pages(struct inode *inode, bool abort) trace_f2fs_commit_inmem_page(cur->page, INMEM); fio.page = cur->page; err = do_write_data_page(&fio); - submit_bio = true; if (err) { unlock_page(cur->page); break; } + submit_bio = true; } } else { trace_f2fs_commit_inmem_page(cur->page, INMEM_DROP);