-
- Downloads
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. Signed-off-by:Daeho Jeong <daehojeong@google.com> Reviewed-by:
Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org>
Showing
- fs/f2fs/data.c 3 additions, 0 deletionsfs/f2fs/data.c
- fs/f2fs/f2fs.h 1 addition, 0 deletionsfs/f2fs/f2fs.h
- fs/f2fs/file.c 15 additions, 6 deletionsfs/f2fs/file.c
- fs/f2fs/segment.c 12 additions, 1 deletionfs/f2fs/segment.c
- include/uapi/linux/f2fs.h 1 addition, 0 deletionsinclude/uapi/linux/f2fs.h
Loading
Please register or sign in to comment