summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-10-21 19:00:31 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-10-21 19:05:53 -0700
commit2b246fb0f60d318cec6901a0326b94b50d5e1dcb (patch)
tree715b5d8c56eb7bd12bbb3fa00ad8c49181b04141 /fs/f2fs
parentd7b8b384b02f52b20a538e741c75c5d50c0e131f (diff)
downloadop-kernel-dev-2b246fb0f60d318cec6901a0326b94b50d5e1dcb.zip
op-kernel-dev-2b246fb0f60d318cec6901a0326b94b50d5e1dcb.tar.gz
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 <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/segment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c
index 7835e41..7efd96ad 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);
OpenPOWER on IntegriCloud