From: Josef Bacik Date: Thu, 28 Oct 2010 20:55:47 +0000 (-0400) Subject: Btrfs: let the user know space caching is enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8216ef866df1119fd5a72372b8b29bce49c18590;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Btrfs: let the user know space caching is enabled If you mount -o space_cache, the option will be persistent across mounts, but to make sure the user knows that they did this, emit a message telling them if they didn't mount with -o space_cache but the feature is still used. Signed-off-by: Josef Bacik --- diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 1a94ee4c4fbb..d2a7ff53e99a 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);