f2fs: do not allow partial truncation on pinned file
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 8 Jan 2022 04:08:45 +0000 (20:08 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 10 Jan 2022 17:05:09 +0000 (09:05 -0800)
commit5fed0be8583f08c1548b4dcd9e5ee0d1133d0730
tree8c6af26416c59c8b49864643d94cecd55dbe185d
parent2b642898e5ea206d04684e55235878ea3425659c
f2fs: do not allow partial truncation on pinned file

If the pinned file has a hole by partial truncation, application that has
the block map will be broken.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/file.c