diff options
-rw-r--r-- | cmds-check.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c index cdcc4ba4..310126ae 100644 --- a/cmds-check.c +++ b/cmds-check.c @@ -3367,7 +3367,8 @@ static int check_space_cache(struct btrfs_root *root) int ret; int error = 0; - if (btrfs_super_generation(root->fs_info->super_copy) != + if (btrfs_super_cache_generation(root->fs_info->super_copy) != -1ULL && + btrfs_super_generation(root->fs_info->super_copy) != btrfs_super_cache_generation(root->fs_info->super_copy)) { printf("cache and super generation don't match, space cache " "will be invalidated\n"); |