f2fs: introduce FI_ATOMIC_COMMIT
authorChao Yu <yuchao0@huawei.com>
Sat, 7 Jan 2017 10:50:26 +0000 (18:50 +0800)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 3 Oct 2017 15:20:50 +0000 (15:20 +0000)
commitdc8b8cea1e70b6649498a9850745c394e39d290c
tree02babca923d9fd588fa597cd6d471beea60aa0a3
parent7129702a487ad1a4689bdf41c3657f829472c18c
f2fs: introduce FI_ATOMIC_COMMIT

commit 5fe457430e554a2f5188f13c1a2e36ad845640c5 upstream.

This patch introduces a new flag to indicate inode status of doing atomic
write committing, so that, we can keep atomic write status for inode
during atomic committing, then we can skip GCing pages of atomic write inode,
that avoids random GCed datas being mixed with current transaction, so
isolation of transaction can be kept.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/segment.c