summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorChunguang Xu <brookxu@tencent.com>2020-09-28 14:36:35 +0300
committerTheodore Ts'o <tytso@mit.edu>2020-10-18 17:37:13 +0300
commitaddd752cff27774258f593c68d283725398689c4 (patch)
tree4772592f0166153a11de3cd8543ffed3767ea52d /fs/ext4/ext4.h
parent9d1f9b27704009a0032c9a70f8a44cfb331971b5 (diff)
downloadlinux-addd752cff27774258f593c68d283725398689c4.tar.xz
ext4: make mb_check_counter per group
Make bb_check_counter per group, so each group has the same chance to be checked, which can expose errors more easily. Signed-off-by: Chunguang Xu <brookxu@tencent.com> Link: https://lore.kernel.org/r/1601292995-32205-2-git-send-email-brookxu@tencent.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r--fs/ext4/ext4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 11077696031d..3e31371795cb 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -3154,6 +3154,9 @@ int ext4_update_disksize_before_punch(struct inode *inode, loff_t offset,
struct ext4_group_info {
unsigned long bb_state;
+#ifdef AGGRESSIVE_CHECK
+ unsigned long bb_check_counter;
+#endif
struct rb_root bb_free_root;
ext4_grpblk_t bb_first_free; /* first free block */
ext4_grpblk_t bb_free; /* total free blocks */