f2fs: introduce FI_ATOMIC_COMMIT
authorChao Yu <yuchao0@huawei.com>
Sat, 7 Jan 2017 10:50:26 +0000 (18:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 23 Feb 2017 02:48:48 +0000 (18:48 -0800)
commit5fe457430e554a2f5188f13c1a2e36ad845640c5
treeb20d30d298e89235c3d55fe3a1ef7835d834bcd5
parent939afa943c5290a3b92f01612a792af17bc98115
f2fs: introduce FI_ATOMIC_COMMIT

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