f2fs: verify file type early in f2fs_fallocate
authorChao Yu <chao2.yu@samsung.com>
Fri, 11 Sep 2015 06:39:02 +0000 (14:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Oct 2015 23:20:50 +0000 (16:20 -0700)
commitc998012b0bb93009d66349ea7e9747c968375e69
treed13ec7cb7874f797b93ab8da00a0038060b53c17
parentc5cd29d21cebc2e1802a9eea4cd940ddf9825ce1
f2fs: verify file type early in f2fs_fallocate

This patch changes to verify file type early in f2fs_fallocate for
cleanup, meanwhile this also fixes to add missing verification for
expand_inode_data.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c