Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8216ef86 authored by Josef Bacik's avatar Josef Bacik Committed by Chris Mason
Browse files

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: default avatarJosef Bacik <josef@redhat.com>
parent 88c2ba3b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -8200,6 +8200,8 @@ int btrfs_read_block_groups(struct btrfs_root *root)
		need_clear = 1;
		need_clear = 1;
	if (btrfs_test_opt(root, CLEAR_CACHE))
	if (btrfs_test_opt(root, CLEAR_CACHE))
		need_clear = 1;
		need_clear = 1;
	if (!btrfs_test_opt(root, SPACE_CACHE) && cache_gen)
		printk(KERN_INFO "btrfs: disk space caching is enabled\n");


	while (1) {
	while (1) {
		ret = find_first_block_group(root, path, &key);
		ret = find_first_block_group(root, path, &key);