f2fs: should convert inline_data during the mkwrite
authorJaegeuk Kim <jaegeuk@kernel.org>
Thu, 7 Aug 2014 23:32:25 +0000 (16:32 -0700)
committerIan Chang <ianc@nvidia.com>
Wed, 27 Jan 2016 10:04:09 +0000 (18:04 +0800)
commitaaace07cabec457743e719f5284680e48bb292cb
treea4f9b72ebae20f7d8d9dbee3db534af5a5481865
parentf3df8989434ed45f74482368065379ed426aa69d
f2fs: should convert inline_data during the mkwrite

If mkwrite is called to an inode having inline_data, it can overwrite the data
index space as NEW_ADDR. (e.g., the first 4 bytes are coincidently zero)

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