BACKPORT: f2fs: introduce F2FS_IOC_START_ATOMIC_REPLACE
introduce a new ioctl to replace the whole content of a file atomically, which means it induces truncate and content update at the same time. We can start it with F2FS_IOC_START_ATOMIC_REPLACE and complete it with F2FS_IOC_COMMIT_ATOMIC_WRITE. Or abort it with F2FS_IOC_ABORT_ATOMIC_WRITE. Bug: 298879042 Change-Id: I6ff971c5dddde77fa6fb5606515049122d4a057a Signed-off-by:Daeho Jeong <daehojeong@google.com> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> (cherry picked from commit 251b0b49) Signed-off-by:
zhoudan8 <zhoudan8@xiaomi.com>
Loading
Please sign in to comment