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:Daeho Jeong <daehojeong@google.com> Reviewed-by:
Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> Bug: 409899947 Bug: 379813820 Change-Id: I47b9428d970004284c8de59665ba832f4df4cf13 Signed-off-by:
Wu Bo <bo.wu@vivo.com> Signed-off-by:
Rui Chen <chenrui9@honor.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.]
Loading
Please sign in to comment