]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: skip punching hole in special condition
authorChao Yu <chao2.yu@samsung.com>
Mon, 15 Sep 2014 10:03:32 +0000 (18:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Sep 2014 18:10:21 +0000 (11:10 -0700)
commit21cc3a56426e160e6642d469c207d31b555e5e58
treef0de29f6c96b43157d0521e4b311503e24421a3d
parent80951aecef98c4e7ad158dcb0080200c67a5d32d
f2fs: skip punching hole in special condition

Now punching hole in directory is not supported in f2fs, so let's limit file
type in punch_hole().

In addition, in punch_hole if offset is exceed file size, we should skip
punching hole.

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