search for: load_free_space_cach

Displaying 2 results from an estimated 2 matches for "load_free_space_cach".

Did you mean: load_free_space_cache
2011 Mar 31
4
[PATCH] Btrfs: fix free space cache when there are pinned extents and clusters
...nd see if the current block group has a cluster and writing out any entries that are in the cluster to the cache, as well as writing any pinned extents we currently have to the cache since those will be available for us to use the next time the fs mounts. This patch also adds a check to the end of load_free_space_cache to make sure we got the right amount of free space cache, and if not make sure to clear the cache and re-cache the old fashioned way. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> --- fs/btrfs/free-space-cache.c | 82 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 7...
2013 Apr 03
0
[PATCH] Btrfs-progs: add a free space cache checker to fsck
...(!cache) + break; + + start = cache->key.objectid + cache->key.offset; + if (!cache->free_space_ctl) { + if (btrfs_init_free_space_ctl(cache, + root->leafsize)) { + ret = -ENOMEM; + break; + } + } else { + btrfs_remove_free_space_cache(cache); + } + + ret = load_free_space_cache(root->fs_info, cache); + if (!ret) + continue; + + ret = verify_space_cache(root, cache); + if (ret) { + fprintf(stderr, "cache appears valid but isnt %Lu\n", + cache->key.objectid); + error++; + } + } + + return error ? -EINVAL : 0; +} + static int run_next_block(str...