Commit 2dfe6648 authored by Chao Yu's avatar Chao Yu Committed by Daniel Rosenberg
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
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 f3f08c64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment