diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2016-01-07 18:38:48 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 10:27:23 +0100 |
commit | 2fefd5583f8b86171c898f90cadac7c09ccf9d73 (patch) | |
tree | 6f5c406bc2dc0ba63c36f3fb19e2462c9f42739c /scripts/mod/empty.c | |
parent | 895a11b868347ca8e287f152f7816862ad4b179d (diff) |
btrfs: reada: limit max works count
Reada creates 2 works for each level of tree recursively.
In case of a tree having many levels, the number of created works
is 2^level_of_tree.
Actually we don't need so many works in parallel, this patch limits
max works to BTRFS_MAX_MIRRORS * 2.
The per-fs works_counter will be also used for btrfs_reada_wait() to
check is there are background workers.
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/mod/empty.c')
0 files changed, 0 insertions, 0 deletions