]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf04bb296074ed0f0dee979cadb78a603bea8c58
tree8c6af26416c59c8b49864643d94cecd55dbe185d
parent33ff1d798bbfe4b3ff74ef9a09fd1c5d7e64c328
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