Commit 709e51ba authored by Chao Yu's avatar Chao Yu Committed by Daniel Rosenberg
Browse files

BACKPORT: f2fs: clear atomic_write_task in f2fs_abort_atomic_write()



Otherwise, last .atomic_write_task will be remained in structure
f2fs_inode_info, resulting in aborting atomic_write accidentally
in race case. Meanwhile, clear original_i_size as well.

Bug: 298879042
Fixes: 7a10f017 ("f2fs: don't give partially written atomic data from process crash")
Change-Id: I67ae387b71121a0280ebfb286d23c738304c3efb
Signed-off-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 8f0ce89f)
Signed-off-by: default avatarzhoudan8 <zhoudan8@xiaomi.com>
parent 11cc01ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment