Skip to content
Commit 587c0a42 authored by Taehee Yoo's avatar Taehee Yoo Committed by Jaegeuk Kim
Browse files

f2fs: add offset check routine before punch_hole() in f2fs_fallocate()



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: default avatarTaehee Yoo <ap420073@gmail.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent f0c9cada
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment