]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to check return value of f2fs_do_truncate_blocks()
authorChao Yu <chao@kernel.org>
Wed, 5 Apr 2023 14:44:53 +0000 (22:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:14 +0000 (23:11 +0900)
commit0e8f60bfdc6eed209145b49e57af7fa7f478db55
tree566db29d9ce3026ae448dfcf352872c047f20837
parent3cd6ab3b5451d12f2d98c54a1c955fd84cc5cf49
f2fs: fix to check return value of f2fs_do_truncate_blocks()

[ Upstream commit b851ee6ba3cc212641e622ebcf92b950c7bafa07 ]

Otherwise, if truncation on cow_inode failed, remained data may
pollute current transaction of atomic write.

Cc: Daeho Jeong <daehojeong@google.com>
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