f2fs: check if inode state is dirty at fsync
authorChangman Lee <cm224.lee@samsung.com>
Mon, 8 Dec 2014 06:29:40 +0000 (15:29 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 8 Dec 2014 18:37:13 +0000 (10:37 -0800)
commit9c7bb702122fdf7c391f7d02c7d27a61a2c0c4b7
treeb2b3e31771181c3a123feb483cfa66ff2527e81e
parent8dcf2ff72120707f960d9b3b15ce6e50705b13a6
f2fs: check if inode state is dirty at fsync

If inode state is dirty, go straight to write.

Suggested-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c