diff options
Diffstat (limited to 'include/f2fs_fs.h')
-rw-r--r-- | include/f2fs_fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/f2fs_fs.h b/include/f2fs_fs.h index aebb1d2..49911a0 100644 --- a/include/f2fs_fs.h +++ b/include/f2fs_fs.h @@ -60,6 +60,7 @@ typedef unsigned long pgoff_t; printf("\nAssertion failed!\n"); \ printf("[%s:%4d] " #exp, __func__, __LINE__); \ printf("\n --> "fmt, ##__VA_ARGS__); \ + config.bug_on = 1; \ exit(-1); \ } \ } while (0); @@ -69,6 +70,7 @@ typedef unsigned long pgoff_t; if (!(exp)) { \ printf("\nAssertion failed!\n"); \ printf("[%s:%4d] " #exp"\n", __func__, __LINE__);\ + config.bug_on = 1; \ exit(-1); \ } \ } while (0); @@ -180,6 +182,9 @@ struct f2fs_configuration { int trim; int func; void *private; + int fix_on; + int fix_cnt; + int bug_on; } __attribute__((packed)); #ifdef CONFIG_64BIT |