f2fs: prevent writing without fallocate() for pinned files
authorDaeho Jeong <daehojeong@google.com>
Thu, 11 Apr 2024 17:54:10 +0000 (10:54 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 14 Apr 2024 15:18:20 +0000 (15:18 +0000)
commit3fdd89b452c2ea5e2195d6e315bef122769584c9
treeb0f36d8e0dc0cade1df4a5ec36eed1092f625328
parent16778aea91869756cad3e07c9ce8ef32a660358c
f2fs: prevent writing without fallocate() for pinned files

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>
fs/f2fs/file.c