f2fs: allow copying file range only in between regular files
authorChao Yu <yuchao0@huawei.com>
Thu, 4 Aug 2016 12:13:02 +0000 (20:13 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 19 Aug 2016 02:15:08 +0000 (11:15 +0900)
commitfe8494bfc8c2914fca821d4ae994aef039be5cf1
treebf6cc1e8b006c05c68c8378f296581978ed5322d
parent3024c9a1fefb3ac0d1b0b078a2e3f2f69478daab
f2fs: allow copying file range only in between regular files

Only if two input files are regular files, we allow copying data in
range of them, otherwise, deny it.

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