]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
f2fs: fix to clear FI_NO_PREALLOC
authorChao Yu <yuchao0@huawei.com>
Mon, 13 Nov 2017 09:32:39 +0000 (17:32 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 14 Nov 2017 04:21:22 +0000 (20:21 -0800)
commit28cfafb73853f0494b06649716687a3ea07681d5
treeb730ee700589a2a0cd01872c627ac68a3fbd25d6
parent2c8a4a28233482ad697db92d86da10fcb498eaf7
f2fs: fix to clear FI_NO_PREALLOC

We need to clear FI_NO_PREALLOC flag in error path of f2fs_file_write_iter,
otherwise we will lose the chance to preallocate blocks in latter write()
at one time.

Fixes: dc91de78e5e1 ("f2fs: do not preallocate blocks which has wrong buffer")
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c