mirror of https://gitee.com/openkylin/linux.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 <jaegeuk@kernel.org>
This commit is contained in:
parent
d7b8b384b0
commit
2b246fb0f6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue