f2fs: fix f2fs_ioc_abort_volatile_write
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 29 Dec 2015 23:46:33 +0000 (15:46 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 30 Dec 2015 18:53:25 +0000 (10:53 -0800)
commit732d56489f21c04f7bf60c675f7d152c9239a09c
treea777f9d25457cbafac5399295b825c5ab9ed08d2
parent4e0d836d5fb26d2cdbb75b0d16d98bef6b798490
f2fs: fix f2fs_ioc_abort_volatile_write

There are two rules to handle aborting volatile or atomic writes.

1. drop atomic writes
 - we don't need to keep any stale db data.

2. write journal data
 - we should keep the journal data with fsync for db recovery.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c