f2fs: recover date requested by fdatasync
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Jul 2013 01:55:52 +0000 (10:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 30 Jul 2013 06:17:02 +0000 (15:17 +0900)
commite5d2385ed6d8543a8884afc28aee44d46cfe64be
treefc3e1a9a7ff1e038aacc1a1b45f75e7048932b05
parent36f571e9ed0419e73d127e18aa8992ced867268c
f2fs: recover date requested by fdatasync

In order to support SQLite that uses fdatasync instead of fsync, we should
guarantee the data requested by fdatasync can be recovered after sudden-power-
off.

So, let's remove the fdatasync condition in f2fs_sync_file.
Otherwise, we can restore the data after sudden-power-off due to nonexistence
of any fsync mark'ed node blocks.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/file.c