f2fs: introduce sysfs/data_io_flag to attach REQ_META/FUA
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 2 Apr 2020 16:32:35 +0000 (09:32 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 16 Apr 2020 21:41:52 +0000 (14:41 -0700)
commitda9953b729c12ece6d35fd15d236457eee679228
tree22e0d5fad2f8ce942171705537e3bf5185f8b802
parent63bef48fd6c9d3f1ba4f0e23b4da1e007db6a3c0
f2fs: introduce sysfs/data_io_flag to attach REQ_META/FUA

This patch introduces a way to attach REQ_META/FUA explicitly
to all the data writes given temperature.

-> attach REQ_FUA to Hot Data writes

-> attach REQ_FUA to Hot|Warm Data writes

-> attach REQ_FUA to Hot|Warm|Cold Data writes

-> attach REQ_FUA to Hot|Warm|Cold Data writes as well as
          REQ_META to Hot Data writes

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Documentation/ABI/testing/sysfs-fs-f2fs
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/sysfs.c