f2fs: should truncate any allocated block for inline_data write
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 15 Oct 2014 17:16:54 +0000 (10:16 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Nov 2014 00:07:29 +0000 (16:07 -0800)
commitc08a690b46919e6b531c1a2bb74389323e5f5b1c
tree07eeb6ea01810f7cd35fd1fd503160753eb6691a
parentcbcb2872e37ba0511f21b3ab5d65973b2055440c
f2fs: should truncate any allocated block for inline_data write

When trying to write inline_data, we should truncate any data block allocated
and pointed by the inode block.
We should consider the data index is not 0.

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