f2fs: correct i_size change for atomic writes
authorDaeho Jeong <daehojeong@google.com>
Mon, 31 Oct 2022 19:24:15 +0000 (12:24 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 11 Nov 2022 17:48:24 +0000 (09:48 -0800)
commit4d8d45df2252980f800c1b2fde941a103a18a70e
tree124cbcae04bf19dc164cabf41f9df71e4f27285c
parent225d6795abf47c3340214ca1b4c22728e463db4f
f2fs: correct i_size change for atomic writes

We need to make sure i_size doesn't change until atomic write commit is
successful and restore it when commit is failed.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/inode.c
fs/f2fs/segment.c