f2fs: remove unneeded code in punch_hole
authorChao Yu <chao2.yu@samsung.com>
Fri, 22 Nov 2013 08:52:50 +0000 (16:52 +0800)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 23 Dec 2013 01:18:04 +0000 (10:18 +0900)
commita66c7b2fcfbc9ef4e972f6bc2b63d72d00f23122
tree81c28b128fc6316e20ac1a8ae697d7b2edc8aa0d
parent031fa8cc9ba45c14f440b9cf71d09950fbe5eb9b
f2fs: remove unneeded code in punch_hole

Because FALLOC_FL_PUNCH_HOLE flag must be ORed with FALLOC_FL_KEEP_SIZE
in fallocate, so we could remove the useless 'keep size' branch code which
will never be excuted in punch_hole.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Fan Li <fanofcode.li@samsung.com>
[Jaegeuk Kim: remove an unnecessary parameter togather]
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/file.c