]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/btrfs/transaction.c
Btrfs: check UUID tree during mount if required
[mirror_ubuntu-artful-kernel.git] / fs / btrfs / transaction.c
index e76237c8802a74495e82c3cfc94c4fbf5b02235a..e0336b9a438569f13bd3e403cc96115a2520d68e 100644 (file)
@@ -1380,7 +1380,8 @@ static void update_super_roots(struct btrfs_root *root)
        super->root_level = root_item->level;
        if (btrfs_test_opt(root, SPACE_CACHE))
                super->cache_generation = root_item->generation;
-       super->uuid_tree_generation = root_item->generation;
+       if (root->fs_info->update_uuid_tree_gen)
+               super->uuid_tree_generation = root_item->generation;
 }
 
 int btrfs_transaction_in_commit(struct btrfs_fs_info *info)