From: Sergei Trofimovich Date: Tue, 24 Apr 2012 19:59:16 +0000 (+0300) Subject: btrfs: allow changing 'thread_pool' size at remount time X-Git-Tag: v3.5-rc1~17^2~1^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d2450abfa359ff94a2bee64a7daeba68c346c81;p=pandora-kernel.git btrfs: allow changing 'thread_pool' size at remount time Changing 'mount -oremount,thread_pool=2 /' didn't make any effect: maximum amount of worker threads is specified in 2 places: - in 'strict btrfs_fs_info::thread_pool_size' - in each worker struct: 'struct btrfs_workers::max_workers' 'mount -oremount' updated only 'btrfs_fs_info::thread_pool_size'. Fix it by pushing new maximum value to all created worker structures as well. Cc: Josef Bacik Cc: Chris Mason Reviewed-by: Josef Bacik Signed-off-by: Sergei Trofimovich --- Reading git-diff-tree failed