diff options
author | Taehee Yoo <ap420073@gmail.com> | 2015-04-21 09:59:12 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-07 21:38:32 +0300 |
commit | 587c0a42552a69a58e7ccd363d30fd48d809fdcb (patch) | |
tree | 79fb08d70b58e8d52bd1120ef05fa570121879b4 /fs/f2fs/f2fs.h | |
parent | f0c9cadae6706b6ce00ef724121fbf0f34187e22 (diff) | |
download | linux-587c0a42552a69a58e7ccd363d30fd48d809fdcb.tar.xz |
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: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
0 files changed, 0 insertions, 0 deletions