Skip to content
Commit 4a543790 authored by Chao Yu's avatar Chao Yu Committed by Sasha Levin
Browse files

f2fs: multidevice: support direct IO

[ Upstream commit 71f2c820 ]

Commit 3c62be17

 ("f2fs: support multiple devices") missed
to support direct IO for multiple device feature, this patch
adds to support the missing part of multidevice feature.

In addition, for multiple device image, we should be aware of
any issued direct write IO rather than just buffered write IO,
so that fsync and syncfs can issue a preflush command to the
device where direct write IO goes, to persist user data for
posix compliant.

Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: fd244524

 ("f2fs: compress: fix to cover normal cluster write with cp_rwsem")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6413e780
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment