mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
UBIFS: introduce helper functions for debugging checks and tests
This patch introduces helper functions for all debugging checks, so instead of doing if (!(ubifs_chk_flags & UBIFS_CHK_GEN)) we now do if (!dbg_is_chk_gen(c)) This is a preparation to further changes where the flags will go away, and we'll need to only change the helper functions, but the code which utilizes them won't be touched. At the same time this patch removes 'dbg_force_in_the_gaps()', 'dbg_force_in_the_gaps_enabled()', and dbg_failure_mode helpers for consistency. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
committed by
Artem Bityutskiy
parent
d808efb407
commit
2b1844a8c9
@@ -576,7 +576,7 @@ int dbg_check_old_index(struct ubifs_info *c, struct ubifs_zbranch *zroot)
|
||||
struct idx_node *i;
|
||||
size_t sz;
|
||||
|
||||
if (!(ubifs_chk_flags & UBIFS_CHK_OLD_IDX))
|
||||
if (!dbg_is_chk_old_idx(c))
|
||||
return 0;
|
||||
|
||||
INIT_LIST_HEAD(&list);
|
||||
|
||||
Reference in New Issue
Block a user