diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1a94ee4c4fbbc5c78a78bd8ce91b181bdeeba6b6..d2a7ff53e99a1b30ce161874f39b137ff692273d 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c @@ -8200,6 +8200,8 @@ int btrfs_read_block_groups(struct btrfs_root *root) need_clear = 1; if (btrfs_test_opt(root, CLEAR_CACHE)) need_clear = 1; + if (!btrfs_test_opt(root, SPACE_CACHE) && cache_gen) + printk(KERN_INFO "btrfs: disk space caching is enabled\n"); while (1) { ret = find_first_block_group(root, path, &key);