kernel_optimize_test/fs/f2fs
Shin'ichiro Kawasaki e582a2f352 f2fs: Prevent swap file in LFS mode
commit d927ccfccb009ede24448d69c08b12e7c8a6979b upstream.

The kernel writes to swap files on f2fs directly without the assistance
of the filesystem. This direct write by kernel can be non-sequential
even when the f2fs is in LFS mode. Such non-sequential write conflicts
with the LFS semantics. Especially when f2fs is set up on zoned block
devices, the non-sequential write causes unaligned write command errors.

To avoid the non-sequential writes to swap files, prevent swap file
activation when the filesystem is in LFS mode.

Fixes: 4969c06a0d ("f2fs: support swap file w/ DIO")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Cc: stable@vger.kernel.org # v5.10+
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-07-14 16:55:43 +02:00
..
acl.c
acl.h
checkpoint.c
compress.c f2fs: compress: fix to assign cc.cluster_idx correctly 2021-05-19 10:13:14 +02:00
data.c f2fs: Prevent swap file in LFS mode 2021-07-14 16:55:43 +02:00
debug.c
dir.c
extent_cache.c
f2fs.h f2fs: compress: fix to assign cc.cluster_idx correctly 2021-05-19 10:13:14 +02:00
file.c f2fs: avoid unneeded data copy in f2fs_ioc_move_range() 2021-05-19 10:13:10 +02:00
gc.c f2fs: fix to avoid touching checkpointed data in get_victim() 2021-05-19 10:13:02 +02:00
gc.h
hash.c
inline.c f2fs: fix a redundant call to f2fs_balance_fs if an error occurs 2021-05-19 10:13:00 +02:00
inode.c
Kconfig
Makefile
namei.c
node.c
node.h
recovery.c
segment.c f2fs: fix to avoid accessing invalid fio in f2fs_allocate_data_block() 2021-05-19 10:13:02 +02:00
segment.h f2fs: fix to avoid touching checkpointed data in get_victim() 2021-05-19 10:13:02 +02:00
shrinker.c
super.c f2fs: fix to allow migrating fully valid segment 2021-05-19 10:13:00 +02:00
sysfs.c
trace.c
trace.h
verity.c
xattr.c
xattr.h