diff options
author | Josef Bacik <josef@redhat.com> | 2010-10-28 16:55:47 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-10-29 09:26:37 -0400 |
commit | 8216ef866df1119fd5a72372b8b29bce49c18590 (patch) | |
tree | 8536ec3e5a308639eeef15ac7d6cb55b655fa0fb /fs | |
parent | 88c2ba3b069f1e0f4694124d02985fa7620a19f1 (diff) |
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 <josef@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) | |||
8200 | need_clear = 1; | 8200 | need_clear = 1; |
8201 | if (btrfs_test_opt(root, CLEAR_CACHE)) | 8201 | if (btrfs_test_opt(root, CLEAR_CACHE)) |
8202 | need_clear = 1; | 8202 | need_clear = 1; |
8203 | if (!btrfs_test_opt(root, SPACE_CACHE) && cache_gen) | ||
8204 | printk(KERN_INFO "btrfs: disk space caching is enabled\n"); | ||
8203 | 8205 | ||
8204 | while (1) { | 8206 | while (1) { |
8205 | ret = find_first_block_group(root, path, &key); | 8207 | ret = find_first_block_group(root, path, &key); |