super.c (f420ee1e923b931eeef5e2928791e84b1197cab3) super.c (c1c9ff7c94e83fae89a742df74db51156869bad5)
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 508 unchanged lines hidden (view full) ---

517 kfree(num);
518
519 if (info->max_inline) {
520 info->max_inline = max_t(u64,
521 info->max_inline,
522 root->sectorsize);
523 }
524 printk(KERN_INFO "btrfs: max_inline at %llu\n",
1/*
2 * Copyright (C) 2007 Oracle. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public
6 * License v2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 508 unchanged lines hidden (view full) ---

517 kfree(num);
518
519 if (info->max_inline) {
520 info->max_inline = max_t(u64,
521 info->max_inline,
522 root->sectorsize);
523 }
524 printk(KERN_INFO "btrfs: max_inline at %llu\n",
525 (unsigned long long)info->max_inline);
525 info->max_inline);
526 } else {
527 ret = -ENOMEM;
528 goto out;
529 }
530 break;
531 case Opt_alloc_start:
532 num = match_strdup(&args[0]);
533 if (num) {
534 mutex_lock(&info->chunk_mutex);
535 info->alloc_start = memparse(num, NULL);
536 mutex_unlock(&info->chunk_mutex);
537 kfree(num);
538 printk(KERN_INFO
539 "btrfs: allocations start at %llu\n",
526 } else {
527 ret = -ENOMEM;
528 goto out;
529 }
530 break;
531 case Opt_alloc_start:
532 num = match_strdup(&args[0]);
533 if (num) {
534 mutex_lock(&info->chunk_mutex);
535 info->alloc_start = memparse(num, NULL);
536 mutex_unlock(&info->chunk_mutex);
537 kfree(num);
538 printk(KERN_INFO
539 "btrfs: allocations start at %llu\n",
540 (unsigned long long)info->alloc_start);
540 info->alloc_start);
541 } else {
542 ret = -ENOMEM;
543 goto out;
544 }
545 break;
546 case Opt_noacl:
547 root->fs_info->sb->s_flags &= ~MS_POSIXACL;
548 break;

--- 393 unchanged lines hidden (view full) ---

942 seq_puts(seq, ",degraded");
943 if (btrfs_test_opt(root, NODATASUM))
944 seq_puts(seq, ",nodatasum");
945 if (btrfs_test_opt(root, NODATACOW))
946 seq_puts(seq, ",nodatacow");
947 if (btrfs_test_opt(root, NOBARRIER))
948 seq_puts(seq, ",nobarrier");
949 if (info->max_inline != 8192 * 1024)
541 } else {
542 ret = -ENOMEM;
543 goto out;
544 }
545 break;
546 case Opt_noacl:
547 root->fs_info->sb->s_flags &= ~MS_POSIXACL;
548 break;

--- 393 unchanged lines hidden (view full) ---

942 seq_puts(seq, ",degraded");
943 if (btrfs_test_opt(root, NODATASUM))
944 seq_puts(seq, ",nodatasum");
945 if (btrfs_test_opt(root, NODATACOW))
946 seq_puts(seq, ",nodatacow");
947 if (btrfs_test_opt(root, NOBARRIER))
948 seq_puts(seq, ",nobarrier");
949 if (info->max_inline != 8192 * 1024)
950 seq_printf(seq, ",max_inline=%llu",
951 (unsigned long long)info->max_inline);
950 seq_printf(seq, ",max_inline=%llu", info->max_inline);
952 if (info->alloc_start != 0)
951 if (info->alloc_start != 0)
953 seq_printf(seq, ",alloc_start=%llu",
954 (unsigned long long)info->alloc_start);
952 seq_printf(seq, ",alloc_start=%llu", info->alloc_start);
955 if (info->thread_pool_size != min_t(unsigned long,
956 num_online_cpus() + 2, 8))
957 seq_printf(seq, ",thread_pool=%d", info->thread_pool_size);
958 if (btrfs_test_opt(root, COMPRESS)) {
959 if (info->compress_type == BTRFS_COMPRESS_ZLIB)
960 compress_type = "zlib";
961 else
962 compress_type = "lzo";

--- 912 unchanged lines hidden ---
953 if (info->thread_pool_size != min_t(unsigned long,
954 num_online_cpus() + 2, 8))
955 seq_printf(seq, ",thread_pool=%d", info->thread_pool_size);
956 if (btrfs_test_opt(root, COMPRESS)) {
957 if (info->compress_type == BTRFS_COMPRESS_ZLIB)
958 compress_type = "zlib";
959 else
960 compress_type = "lzo";

--- 912 unchanged lines hidden ---