diff options
author | Richard Weinberger <richard@nod.at> | 2014-09-22 09:44:50 (GMT) |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-26 21:46:03 (GMT) |
commit | 5fa7fa5dad0cf8f2b47bb8dca91c605c48d282f6 (patch) | |
tree | 1781c7666647ede6e57e8c631b6f1af3ed8361e3 /drivers/mtd/ubi/ubi.h | |
parent | 5ca97ad83800938e8aeea622821a26d69d2052bf (diff) | |
download | linux-5fa7fa5dad0cf8f2b47bb8dca91c605c48d282f6.tar.xz |
UBI: Add initial support for fastmap self checks
Using this debugfs knob fastmap self checks can be controlled.
Signed-off-by: Richard Weinberger <richard@nod.at>
Reviewed-by: Tanya Brokhman <tlinder@codeaurora.org>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 058c84c..adc633c 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h @@ -356,6 +356,7 @@ struct ubi_wl_entry; * * @chk_gen: if UBI general extra checks are enabled * @chk_io: if UBI I/O extra checks are enabled + * @chk_fastmap: if UBI fastmap extra checks are enabled * @disable_bgt: disable the background task for testing purposes * @emulate_bitflips: emulate bit-flips for testing purposes * @emulate_io_failures: emulate write/erase failures for testing purposes @@ -363,6 +364,7 @@ struct ubi_wl_entry; * @dfs_dir: direntry object of the UBI device debugfs directory * @dfs_chk_gen: debugfs knob to enable UBI general extra checks * @dfs_chk_io: debugfs knob to enable UBI I/O extra checks + * @dfs_chk_fastmap: debugfs knob to enable UBI fastmap extra checks * @dfs_disable_bgt: debugfs knob to disable the background task * @dfs_emulate_bitflips: debugfs knob to emulate bit-flips * @dfs_emulate_io_failures: debugfs knob to emulate write/erase failures @@ -370,6 +372,7 @@ struct ubi_wl_entry; struct ubi_debug_info { unsigned int chk_gen:1; unsigned int chk_io:1; + unsigned int chk_fastmap:1; unsigned int disable_bgt:1; unsigned int emulate_bitflips:1; unsigned int emulate_io_failures:1; @@ -377,6 +380,7 @@ struct ubi_debug_info { struct dentry *dfs_dir; struct dentry *dfs_chk_gen; struct dentry *dfs_chk_io; + struct dentry *dfs_chk_fastmap; struct dentry *dfs_disable_bgt; struct dentry *dfs_emulate_bitflips; struct dentry *dfs_emulate_io_failures; |