diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 6846ededfe95..eda330df45a4 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -519,7 +519,9 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
519 | case Opt_alloc_start: | 519 | case Opt_alloc_start: |
520 | num = match_strdup(&args[0]); | 520 | num = match_strdup(&args[0]); |
521 | if (num) { | 521 | if (num) { |
522 | mutex_lock(&info->chunk_mutex); | ||
522 | info->alloc_start = memparse(num, NULL); | 523 | info->alloc_start = memparse(num, NULL); |
524 | mutex_unlock(&info->chunk_mutex); | ||
523 | kfree(num); | 525 | kfree(num); |
524 | printk(KERN_INFO | 526 | printk(KERN_INFO |
525 | "btrfs: allocations start at %llu\n", | 527 | "btrfs: allocations start at %llu\n", |
@@ -1289,7 +1291,9 @@ restore: | |||
1289 | fs_info->mount_opt = old_opts; | 1291 | fs_info->mount_opt = old_opts; |
1290 | fs_info->compress_type = old_compress_type; | 1292 | fs_info->compress_type = old_compress_type; |
1291 | fs_info->max_inline = old_max_inline; | 1293 | fs_info->max_inline = old_max_inline; |
1294 | mutex_lock(&fs_info->chunk_mutex); | ||
1292 | fs_info->alloc_start = old_alloc_start; | 1295 | fs_info->alloc_start = old_alloc_start; |
1296 | mutex_unlock(&fs_info->chunk_mutex); | ||
1293 | btrfs_resize_thread_pool(fs_info, | 1297 | btrfs_resize_thread_pool(fs_info, |
1294 | old_thread_pool_size, fs_info->thread_pool_size); | 1298 | old_thread_pool_size, fs_info->thread_pool_size); |
1295 | fs_info->metadata_ratio = old_metadata_ratio; | 1299 | fs_info->metadata_ratio = old_metadata_ratio; |