linux-stable/fs/f2fs
Jaegeuk Kim 915a8a01ba f2fs: should not truncate blocks during roll-forward recovery
commit 4d8ec91208 upstream.

If the file preallocated blocks and fsync'ed, we should not truncate them during
roll-forward recovery which will recover i_size correctly back.

Fixes: d4dd19ec1e ("f2fs: do not expose unwritten blocks to user by DIO")
Cc: <stable@vger.kernel.org> # 5.17+
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-09 09:16:15 +02:00
..
acl.c vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
acl.h vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
checkpoint.c f2fs: fix to do sanity check on .cp_pack_total_block_count 2022-04-08 13:57:18 +02:00
compress.c f2fs: compress: fix to print raw data size in error path of lz4 decompression 2022-04-08 13:58:40 +02:00
data.c f2fs: fix compressed file start atomic write may cause data corruption 2022-04-08 13:57:40 +02:00
debug.c f2fs: use spin_lock to avoid hang 2022-04-08 13:58:40 +02:00
dir.c unicode: clean up the Kconfig symbol confusion 2022-01-20 19:57:24 -05:00
extent_cache.c f2fs: support fault injection for f2fs_kmem_cache_alloc() 2021-08-17 11:59:05 -07:00
f2fs.h f2fs: don't get FREEZE lock in f2fs_evict_inode in frozen fs 2022-04-08 13:58:40 +02:00
file.c f2fs: fix compressed file start atomic write may cause data corruption 2022-04-08 13:57:40 +02:00
gc.c f2fs: fix to unlock page correctly in error path of is_alive() 2022-04-08 13:57:18 +02:00
gc.h f2fs: introduce gc_merge mount option 2021-03-30 18:48:56 -07:00
hash.c unicode: clean up the Kconfig symbol confusion 2022-01-20 19:57:24 -05:00
inline.c f2fs: do not bother checkpoint by f2fs_get_node_info 2022-01-04 13:20:49 -08:00
inode.c f2fs: should not truncate blocks during roll-forward recovery 2022-05-09 09:16:15 +02:00
iostat.c f2fs: use iomap for direct I/O 2021-12-10 15:48:30 -08:00
iostat.h f2fs: introduce periodic iostat io latency traces 2021-08-23 10:25:51 -07:00
Kconfig f2fs: implement iomap operations 2021-12-04 10:53:35 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c unicode: clean up the Kconfig symbol confusion 2022-01-20 19:57:24 -05:00
node.c f2fs: fix to avoid potential deadlock 2022-04-08 13:57:40 +02:00
node.h f2fs: introduce excess_dirty_threshold() 2021-09-20 16:12:51 -07:00
recovery.c Fix from Christoph Hellwig merging the CONFIG_UNICODE_UTF8_DATA into the 2022-02-01 11:13:24 -08:00
segment.c f2fs: fix to do sanity check on curseg->alloc_type 2022-04-08 13:58:39 +02:00
segment.h f2fs: fix to reserve space for IO align feature 2022-01-04 13:20:56 -08:00
shrinker.c
super.c f2fs: don't get FREEZE lock in f2fs_evict_inode in frozen fs 2022-04-08 13:58:40 +02:00
sysfs.c f2fs: fix to enable ATGC correctly via gc_idle sysfs interface 2022-04-08 13:57:39 +02:00
verity.c f2fs: support fault injection for dquot_initialize() 2021-10-29 10:38:53 -07:00
xattr.c f2fs: clean up __find_inline_xattr() with __find_xattr() 2022-01-04 13:20:56 -08:00
xattr.h