aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-11 21:47:56 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commit4543df7ecc8ae4928c1e51d6e7dc188d650abee4 (patch)
treec0e32d2bdaaf26f6819f5f034ed8f1679d23109f /fs/btrfs/ctree.h
parent35d8ba66294ff2a53c17337a1aa1ff6739492f41 (diff)
Btrfs: Add a mount option to control worker thread pool size
mount -o thread_pool_size changes the default, which is min(num_cpus + 2, 8). Larger thread pools would make more sense on very large disk arrays. This mount option controls the max size of each thread pool. There are multiple thread pools, so the total worker count will be larger than the mount option. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 6c91a510c965..7ae4666103c0 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -532,6 +532,7 @@ struct btrfs_fs_info {
532 */ 532 */
533 struct btrfs_workers workers; 533 struct btrfs_workers workers;
534 struct btrfs_workers endio_workers; 534 struct btrfs_workers endio_workers;
535 int thread_pool_size;
535 536
536#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) 537#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
537 struct work_struct trans_work; 538 struct work_struct trans_work;