f2fs: checkpoint disabling
authorDaniel Rosenberg <drosen@google.com>
Tue, 21 Aug 2018 02:21:43 +0000 (19:21 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 16 Oct 2018 16:36:39 +0000 (09:36 -0700)
commit4354994f097d068a894aa1a0860da54571df3582
treebfa7fb1e09a2caa88aa2cdcf129834537a4c6a40
parentfb7d70db305a1446864227abf711b756568f8242
f2fs: checkpoint disabling

Note that, it requires "f2fs: return correct errno in f2fs_gc".

This adds a lightweight non-persistent snapshotting scheme to f2fs.

To use, mount with the option checkpoint=disable, and to return to
normal operation, remount with checkpoint=enable. If the filesystem
is shut down before remounting with checkpoint=enable, it will revert
back to its apparent state when it was first mounted with
checkpoint=disable. This is useful for situations where you wish to be
able to roll back the state of the disk in case of some critical
failure.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
[Jaegeuk Kim: use SB_RDONLY instead of MS_RDONLY]
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
13 files changed:
Documentation/filesystems/f2fs.txt
fs/f2fs/checkpoint.c
fs/f2fs/data.c
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/file.c
fs/f2fs/gc.c
fs/f2fs/inode.c
fs/f2fs/namei.c
fs/f2fs/segment.c
fs/f2fs/segment.h
fs/f2fs/super.c
include/linux/f2fs_fs.h