diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-07-11 19:42:51 -0700 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-11-10 21:55:55 -0800 |
commit | 77c320eb46e216c17aee5c943949229ccfed6904 (patch) | |
tree | b397c28bbd46f50d0de0fa94a967964cac4b4a7e /drivers/md/bcache/bcache.h | |
parent | 49b1212dfacfe51f951442563d1617bb06aac575 (diff) | |
download | op-kernel-dev-77c320eb46e216c17aee5c943949229ccfed6904.zip op-kernel-dev-77c320eb46e216c17aee5c943949229ccfed6904.tar.gz |
bcache: Add on error panic/unregister setting
Works kind of like the ext4 setting, to panic or remount read only on
errors.
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/bcache.h')
-rw-r--r-- | drivers/md/bcache/bcache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/bcache/bcache.h b/drivers/md/bcache/bcache.h index bf37474..5786156 100644 --- a/drivers/md/bcache/bcache.h +++ b/drivers/md/bcache/bcache.h @@ -843,8 +843,14 @@ struct cache_set { atomic_long_t cache_read_races; atomic_long_t writeback_keys_done; atomic_long_t writeback_keys_failed; + + enum { + ON_ERROR_UNREGISTER, + ON_ERROR_PANIC, + } on_error; unsigned error_limit; unsigned error_decay; + unsigned short journal_delay_ms; unsigned verify:1; unsigned key_merging_disabled:1; |