]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: multidevice: support direct IO
authorChao Yu <chao@kernel.org>
Wed, 1 Sep 2021 06:39:20 +0000 (14:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 26 Oct 2021 21:04:30 +0000 (14:04 -0700)
commit159ef2aa42dfc89ae59a2958fb05b3f84594836a
tree164f9a4411752af6d41a4b525b923c6ab0591407
parent05abe3244f8e02317094d7a9d03f646fa86bbb7b
f2fs: multidevice: support direct IO

Commit 4ced654e00c9 ("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: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/segment.c
fs/f2fs/super.c
include/trace/events/f2fs.h