f2fs: convert inline_data when i_size becomes large
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Nov 2014 22:10:01 +0000 (14:10 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 11 Nov 2014 22:16:12 +0000 (14:16 -0800)
commit92dffd01790a5219d234fc83c3ba854f4490b7f4
tree226fac18c0ac172e2bb6f9c966e03e9a8a8c81d9
parent764d2c80401fcc7ee15933d604c6a783d5addc40
f2fs: convert inline_data when i_size becomes large

If i_size becomes large outside of MAX_INLINE_DATA, we shoud convert the inode.
Otherwise, we can make some dirty pages during the truncation, and those pages
will be written through f2fs_write_data_page.
At that moment, the inode has still inline_data, so that it tries to write non-
zero pages into inline_data area.

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