Commit 3467130f authored by Daeho Jeong's avatar Daeho Jeong Committed by Will Deacon
Browse files

BACKPORT: 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: default avatarDaeho Jeong <daehojeong@google.com>
Reviewed-by: default avatarChao Yu <chao@kernel.org>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>

Bug: 391063017
Bug: 379813820
Change-Id: I47b9428d970004284c8de59665ba832f4df4cf13
Signed-off-by: default avatarWu Bo <bo.wu@vivo.com>
(cherry picked from commit 3fdd89b4)
[Wo Bo: Due to some applications pinning small files via ioctl, the fallocate call fails to allocate space when the system is upgraded. Therefore, it is forbidden to write data to pinned files through the normal write interface.]
(cherry picked from commit e09bed30)
parent 3f031cab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment