Commit c148d63e authored by Daeho Jeong's avatar Daeho Jeong Committed by Daniel Rosenberg
Browse files

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: default avatarDaeho Jeong <daehojeong@google.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit 251b0b49)
Signed-off-by: default avatarzhoudan8 <zhoudan8@xiaomi.com>
parent a9fafdc4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment