f2fs: avoid stat_inc_atomic_write for non-atomic file
authorKinglong Mee <kinglongmee@gmail.com>
Sat, 18 Mar 2017 01:20:55 +0000 (09:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 22 Mar 2017 02:34:36 +0000 (22:34 -0400)
commit684ca7e55de1f3defb13c491e0b5eb8f27ffe79c
tree4ec04c19a2774f821549a7b14964802151f09627
parenta58f24495d072c5cf2177a5343dd8d751383fdc7
f2fs: avoid stat_inc_atomic_write for non-atomic file

After filemap_write_and_wait_range fail, the FI_ATOMIC_FILE flags is removed,
so that f2fs should not increase the stat of atomic_write.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c