f2fs: add offset check routine before punch_hole() in f2fs_fallocate()
authorTaehee Yoo <ap420073@gmail.com>
Tue, 21 Apr 2015 06:59:12 +0000 (15:59 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 7 May 2015 18:38:32 +0000 (11:38 -0700)
In the punch_hole(), if offset bigger than inode size, it returns SUCCESS.
Then f2fs_fallocate() will update time and dirty mark.
In that case, inode has not been modified actually.
So I have added offset check routine that prevent to call the punch_hole().

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c

diff --cc fs/f2fs/file.c
Simple merge