]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: atomic: fix to truncate pagecache before on-disk metadata truncation
authorChao Yu <chao@kernel.org>
Wed, 7 Aug 2024 10:24:35 +0000 (18:24 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:36 +0000 (16:29 +0200)
commit783b6ca3428fcc01426d716c9e8b0dba51eb0a2a
tree9200787e8e0773a8b98955c1da531d077dd934c6
parent1bb0686a2e8af8ce467e6c7aa318f1dc5d1c88cc
f2fs: atomic: fix to truncate pagecache before on-disk metadata truncation

[ Upstream commit ebd3309aec6271c4616573b0cb83ea25e623070a ]

We should always truncate pagecache while truncating on-disk data.

Fixes: a46bebd502fe ("f2fs: synchronize atomic write aborts")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c