diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-07 09:46:37 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-12 13:37:54 -0700 |
commit | c912a8298c16ef15aa2b7203022c935f439f488b (patch) | |
tree | 728add7743e88aaea7571acbf3e3699b4b8921ee /fs/f2fs/f2fs.h | |
parent | 6066d8cdb6dd0fd51ccd96027f6ae8e6b3b5adff (diff) | |
download | op-kernel-dev-c912a8298c16ef15aa2b7203022c935f439f488b.zip op-kernel-dev-c912a8298c16ef15aa2b7203022c935f439f488b.tar.gz |
f2fs: add F2FS_GOING_DOWN_METAFLUSH to test power-failure
This patch introduces F2FS_GOING_DOWN_METAFLUSH which flushes meta pages like
SSA blocks and then blocks all the writes.
This can be used by power-failure tests.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index aad4720..f05ae22 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -250,6 +250,7 @@ static inline bool __has_cursum_space(struct f2fs_summary_block *sum, int size, #define F2FS_GOING_DOWN_FULLSYNC 0x0 /* going down with full sync */ #define F2FS_GOING_DOWN_METASYNC 0x1 /* going down with metadata */ #define F2FS_GOING_DOWN_NOSYNC 0x2 /* going down */ +#define F2FS_GOING_DOWN_METAFLUSH 0x3 /* going down with meta flush */ #if defined(__KERNEL__) && defined(CONFIG_COMPAT) /* |