]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: prevent writing without fallocate() for pinned files
authorDaeho Jeong <daehojeong@google.com>
Thu, 11 Apr 2024 17:54:10 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2025 14:03:14 +0000 (16:03 +0200)
commit7ac8a61e5503d3c06fe2524e0099719a9d0dafa7
tree9332a956d078065aa2a7551ca8c213a10fee5feb
parentb43c3050d21196e5e7024872e3048dba83e31751
f2fs: prevent writing without fallocate() for pinned files

[ Upstream commit 3fdd89b452c2ea5e2195d6e315bef122769584c9 ]

In a case writing without fallocate(), we can't guarantee it's allocated
in the conventional area for zoned stroage. To make it consistent across
storage devices, we disallow it regardless of storage device types.

Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Stable-dep-of: ba8dac350faf ("f2fs: fix to zero post-eof page")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/file.c