Commit 74e435be authored by Chao Yu's avatar Chao Yu Committed by Matthias Männich
Browse files

BACKPORT: f2fs: fix to check return value of f2fs_do_truncate_blocks()



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

Bug: 298879042
Bug: 308706939
Cc: Daeho Jeong <daehojeong@google.com>
Fixes: a46bebd5 ("f2fs: synchronize atomic write aborts")
Change-Id: I964ef3e57b0f0dbf77ec4cc8f9cbf349c2a01fff
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 5a37d6f4)
Signed-off-by: default avatarzhoudan8 <zhoudan8@xiaomi.com>
parent 84feeb6f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment