f2fs: fix to wait dio completion
authorChao Yu <chao@kernel.org>
Thu, 27 Jun 2024 07:17:11 +0000 (15:17 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 15 Aug 2024 15:26:39 +0000 (15:26 +0000)
commit96cfeb0389530ae32ade8a48ae3ae1ac3b6c009d
tree956171639692abec381b50914d500f99b47af262
parentaaf8c0b9ae042494cb4585883b15c1332de77840
f2fs: fix to wait dio completion

It should wait all existing dio write IOs before block removal,
otherwise, previous direct write IO may overwrite data in the
block which may be reused by other inode.

Cc: stable@vger.kernel.org
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c