search for: div_factor_fine

Displaying 3 results from an estimated 3 matches for "div_factor_fine".

2010 Dec 12
0
[PATCH] Btrfs: pick the correct metadata allocation size on small devices
...ot *root, alloc_bytes < div_factor(num_bytes, 8)) return 0; + max_chunk_size = min(256 * 1024 * 1024, div_factor(total_rw_bytes, 1)); thresh = btrfs_super_total_bytes(&root->fs_info->super_copy); - thresh = max_t(u64, 256 * 1024 * 1024, div_factor_fine(thresh, 5)); + thresh = max_t(u64, max_chunk_size, div_factor_fine(thresh, 5)); if (num_bytes > thresh && sinfo->bytes_used < div_factor(num_bytes, 3)) return 0; -- Itaru Kitayama <kitayama@cl.bb4.ne.jp> -- To unsubscribe from this list: sen...
2013 Feb 11
2
[PATCH] btrfs: accept zero for balance usage filter
...files changed, 4 insertions(+), 1 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 5cbb7f4..fb871d0 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -2623,7 +2623,10 @@ static int chunk_usage_filter(struct btrfs_fs_info *fs_info, u64 chunk_offset, user_thresh = div_factor_fine(cache->key.offset, bargs->usage); - if (chunk_used < user_thresh) + pr_debug("btrfs: chunk_used %llu, user_thresh %llu\n", + (unsigned long long)chunk_used, + (unsigned long long)user_thresh); + if (chunk_used <= user_thresh) ret = 0; btrfs_put_block_g...
2011 Aug 23
40
[PATCH 00/21] [RFC] Btrfs: restriper
Hello, This patch series adds an initial implementation of restriper (it''s a clever name for relocation framework that allows to do selective profile changing and selective balancing with some goodies like pausing/resuming and reporting progress to the user. Profile changing is global (per-FS) so far, per-subvolume profiles require some discussion and can be implemented in future.