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)
commit71f2c8206202584c644eef5ca7efe91fc8305c1f
tree164f9a4411752af6d41a4b525b923c6ab0591407
parent6691d940b0e09dd1564130e7a354d6deaf05d009
f2fs: multidevice: support direct IO

Commit 3c62be17d4f5 ("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