aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorFrank Holton <fholton@gmail.com>2013-12-20 11:37:06 -0500
committerChris Mason <clm@fb.com>2014-01-28 16:20:05 -0500
commitefe120a067c8674a8ae21b194f0e68f098b61ee2 (patch)
tree1edb3b59b689a96ec15b548387c048ee959fb6fd /fs/btrfs/super.c
parent5de865eebb8330eee19c37b31fb6f315a09d4273 (diff)
Btrfs: convert printk to btrfs_ and fix BTRFS prefix
Convert all applicable cases of printk and pr_* to the btrfs_* macros. Fix all uses of the BTRFS prefix. Signed-off-by: Frank Holton <fholton@gmail.com> Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r--fs/btrfs/super.c104
1 files changed, 49 insertions, 55 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index d71a11d13dfa..15b6a1d4c533 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -152,11 +152,12 @@ void __btrfs_std_error(struct btrfs_fs_info *fs_info, const char *function,
152 vaf.fmt = fmt; 152 vaf.fmt = fmt;
153 vaf.va = &args; 153 vaf.va = &args;
154 154
155 printk(KERN_CRIT "BTRFS error (device %s) in %s:%d: errno=%d %s (%pV)\n", 155 printk(KERN_CRIT
156 "BTRFS: error (device %s) in %s:%d: errno=%d %s (%pV)\n",
156 sb->s_id, function, line, errno, errstr, &vaf); 157 sb->s_id, function, line, errno, errstr, &vaf);
157 va_end(args); 158 va_end(args);
158 } else { 159 } else {
159 printk(KERN_CRIT "BTRFS error (device %s) in %s:%d: errno=%d %s\n", 160 printk(KERN_CRIT "BTRFS: error (device %s) in %s:%d: errno=%d %s\n",
160 sb->s_id, function, line, errno, errstr); 161 sb->s_id, function, line, errno, errstr);
161 } 162 }
162 163
@@ -250,7 +251,7 @@ void __btrfs_abort_transaction(struct btrfs_trans_handle *trans,
250 */ 251 */
251 if (!test_and_set_bit(BTRFS_FS_STATE_TRANS_ABORTED, 252 if (!test_and_set_bit(BTRFS_FS_STATE_TRANS_ABORTED,
252 &root->fs_info->fs_state)) { 253 &root->fs_info->fs_state)) {
253 WARN(1, KERN_DEBUG "btrfs: Transaction aborted (error %d)\n", 254 WARN(1, KERN_DEBUG "BTRFS: Transaction aborted (error %d)\n",
254 errno); 255 errno);
255 } 256 }
256 trans->aborted = errno; 257 trans->aborted = errno;
@@ -294,8 +295,8 @@ void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function,
294 panic(KERN_CRIT "BTRFS panic (device %s) in %s:%d: %pV (errno=%d %s)\n", 295 panic(KERN_CRIT "BTRFS panic (device %s) in %s:%d: %pV (errno=%d %s)\n",
295 s_id, function, line, &vaf, errno, errstr); 296 s_id, function, line, &vaf, errno, errstr);
296 297
297 printk(KERN_CRIT "BTRFS panic (device %s) in %s:%d: %pV (errno=%d %s)\n", 298 btrfs_crit(fs_info, "panic in %s:%d: %pV (errno=%d %s)",
298 s_id, function, line, &vaf, errno, errstr); 299 function, line, &vaf, errno, errstr);
299 va_end(args); 300 va_end(args);
300 /* Caller calls BUG() */ 301 /* Caller calls BUG() */
301} 302}
@@ -409,7 +410,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
409 token = match_token(p, tokens, args); 410 token = match_token(p, tokens, args);
410 switch (token) { 411 switch (token) {
411 case Opt_degraded: 412 case Opt_degraded:
412 printk(KERN_INFO "btrfs: allowing degraded mounts\n"); 413 btrfs_info(root->fs_info, "allowing degraded mounts");
413 btrfs_set_opt(info->mount_opt, DEGRADED); 414 btrfs_set_opt(info->mount_opt, DEGRADED);
414 break; 415 break;
415 case Opt_subvol: 416 case Opt_subvol:
@@ -422,15 +423,16 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
422 */ 423 */
423 break; 424 break;
424 case Opt_nodatasum: 425 case Opt_nodatasum:
425 printk(KERN_INFO "btrfs: setting nodatasum\n"); 426 btrfs_info(root->fs_info, "setting nodatasum");
426 btrfs_set_opt(info->mount_opt, NODATASUM); 427 btrfs_set_opt(info->mount_opt, NODATASUM);
427 break; 428 break;
428 case Opt_nodatacow: 429 case Opt_nodatacow:
429 if (!btrfs_test_opt(root, COMPRESS) || 430 if (!btrfs_test_opt(root, COMPRESS) ||
430 !btrfs_test_opt(root, FORCE_COMPRESS)) { 431 !btrfs_test_opt(root, FORCE_COMPRESS)) {
431 printk(KERN_INFO "btrfs: setting nodatacow, compression disabled\n"); 432 btrfs_info(root->fs_info,
433 "setting nodatacow, compression disabled");
432 } else { 434 } else {
433 printk(KERN_INFO "btrfs: setting nodatacow\n"); 435 btrfs_info(root->fs_info, "setting nodatacow");
434 } 436 }
435 btrfs_clear_opt(info->mount_opt, COMPRESS); 437 btrfs_clear_opt(info->mount_opt, COMPRESS);
436 btrfs_clear_opt(info->mount_opt, FORCE_COMPRESS); 438 btrfs_clear_opt(info->mount_opt, FORCE_COMPRESS);
@@ -470,7 +472,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
470 472
471 if (compress_force) { 473 if (compress_force) {
472 btrfs_set_opt(info->mount_opt, FORCE_COMPRESS); 474 btrfs_set_opt(info->mount_opt, FORCE_COMPRESS);
473 pr_info("btrfs: force %s compression\n", 475 btrfs_info(root->fs_info, "force %s compression",
474 compress_type); 476 compress_type);
475 } else if (btrfs_test_opt(root, COMPRESS)) { 477 } else if (btrfs_test_opt(root, COMPRESS)) {
476 pr_info("btrfs: use %s compression\n", 478 pr_info("btrfs: use %s compression\n",
@@ -478,24 +480,22 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
478 } 480 }
479 break; 481 break;
480 case Opt_ssd: 482 case Opt_ssd:
481 printk(KERN_INFO "btrfs: use ssd allocation scheme\n"); 483 btrfs_info(root->fs_info, "use ssd allocation scheme");
482 btrfs_set_opt(info->mount_opt, SSD); 484 btrfs_set_opt(info->mount_opt, SSD);
483 break; 485 break;
484 case Opt_ssd_spread: 486 case Opt_ssd_spread:
485 printk(KERN_INFO "btrfs: use spread ssd " 487 btrfs_info(root->fs_info, "use spread ssd allocation scheme");
486 "allocation scheme\n");
487 btrfs_set_opt(info->mount_opt, SSD); 488 btrfs_set_opt(info->mount_opt, SSD);
488 btrfs_set_opt(info->mount_opt, SSD_SPREAD); 489 btrfs_set_opt(info->mount_opt, SSD_SPREAD);
489 break; 490 break;
490 case Opt_nossd: 491 case Opt_nossd:
491 printk(KERN_INFO "btrfs: not using ssd allocation " 492 btrfs_info(root->fs_info, "not using ssd allocation scheme");
492 "scheme\n");
493 btrfs_set_opt(info->mount_opt, NOSSD); 493 btrfs_set_opt(info->mount_opt, NOSSD);
494 btrfs_clear_opt(info->mount_opt, SSD); 494 btrfs_clear_opt(info->mount_opt, SSD);
495 btrfs_clear_opt(info->mount_opt, SSD_SPREAD); 495 btrfs_clear_opt(info->mount_opt, SSD_SPREAD);
496 break; 496 break;
497 case Opt_nobarrier: 497 case Opt_nobarrier:
498 printk(KERN_INFO "btrfs: turning off barriers\n"); 498 btrfs_info(root->fs_info, "turning off barriers");
499 btrfs_set_opt(info->mount_opt, NOBARRIER); 499 btrfs_set_opt(info->mount_opt, NOBARRIER);
500 break; 500 break;
501 case Opt_thread_pool: 501 case Opt_thread_pool:
@@ -520,7 +520,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
520 info->max_inline, 520 info->max_inline,
521 root->sectorsize); 521 root->sectorsize);
522 } 522 }
523 printk(KERN_INFO "btrfs: max_inline at %llu\n", 523 btrfs_info(root->fs_info, "max_inline at %llu",
524 info->max_inline); 524 info->max_inline);
525 } else { 525 } else {
526 ret = -ENOMEM; 526 ret = -ENOMEM;
@@ -534,8 +534,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
534 info->alloc_start = memparse(num, NULL); 534 info->alloc_start = memparse(num, NULL);
535 mutex_unlock(&info->chunk_mutex); 535 mutex_unlock(&info->chunk_mutex);
536 kfree(num); 536 kfree(num);
537 printk(KERN_INFO 537 btrfs_info(root->fs_info, "allocations start at %llu",
538 "btrfs: allocations start at %llu\n",
539 info->alloc_start); 538 info->alloc_start);
540 } else { 539 } else {
541 ret = -ENOMEM; 540 ret = -ENOMEM;
@@ -546,11 +545,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
546 root->fs_info->sb->s_flags &= ~MS_POSIXACL; 545 root->fs_info->sb->s_flags &= ~MS_POSIXACL;
547 break; 546 break;
548 case Opt_notreelog: 547 case Opt_notreelog:
549 printk(KERN_INFO "btrfs: disabling tree log\n"); 548 btrfs_info(root->fs_info, "disabling tree log");
550 btrfs_set_opt(info->mount_opt, NOTREELOG); 549 btrfs_set_opt(info->mount_opt, NOTREELOG);
551 break; 550 break;
552 case Opt_flushoncommit: 551 case Opt_flushoncommit:
553 printk(KERN_INFO "btrfs: turning on flush-on-commit\n"); 552 btrfs_info(root->fs_info, "turning on flush-on-commit");
554 btrfs_set_opt(info->mount_opt, FLUSHONCOMMIT); 553 btrfs_set_opt(info->mount_opt, FLUSHONCOMMIT);
555 break; 554 break;
556 case Opt_ratio: 555 case Opt_ratio:
@@ -559,7 +558,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
559 goto out; 558 goto out;
560 } else if (intarg >= 0) { 559 } else if (intarg >= 0) {
561 info->metadata_ratio = intarg; 560 info->metadata_ratio = intarg;
562 printk(KERN_INFO "btrfs: metadata ratio %d\n", 561 btrfs_info(root->fs_info, "metadata ratio %d",
563 info->metadata_ratio); 562 info->metadata_ratio);
564 } else { 563 } else {
565 ret = -EINVAL; 564 ret = -EINVAL;
@@ -576,15 +575,15 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
576 btrfs_set_opt(info->mount_opt, RESCAN_UUID_TREE); 575 btrfs_set_opt(info->mount_opt, RESCAN_UUID_TREE);
577 break; 576 break;
578 case Opt_no_space_cache: 577 case Opt_no_space_cache:
579 printk(KERN_INFO "btrfs: disabling disk space caching\n"); 578 btrfs_info(root->fs_info, "disabling disk space caching");
580 btrfs_clear_opt(info->mount_opt, SPACE_CACHE); 579 btrfs_clear_opt(info->mount_opt, SPACE_CACHE);
581 break; 580 break;
582 case Opt_inode_cache: 581 case Opt_inode_cache:
583 printk(KERN_INFO "btrfs: enabling inode map caching\n"); 582 btrfs_info(root->fs_info, "enabling inode map caching");
584 btrfs_set_opt(info->mount_opt, INODE_MAP_CACHE); 583 btrfs_set_opt(info->mount_opt, INODE_MAP_CACHE);
585 break; 584 break;
586 case Opt_clear_cache: 585 case Opt_clear_cache:
587 printk(KERN_INFO "btrfs: force clearing of disk cache\n"); 586 btrfs_info(root->fs_info, "force clearing of disk cache");
588 btrfs_set_opt(info->mount_opt, CLEAR_CACHE); 587 btrfs_set_opt(info->mount_opt, CLEAR_CACHE);
589 break; 588 break;
590 case Opt_user_subvol_rm_allowed: 589 case Opt_user_subvol_rm_allowed:
@@ -594,11 +593,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
594 btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG); 593 btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG);
595 break; 594 break;
596 case Opt_defrag: 595 case Opt_defrag:
597 printk(KERN_INFO "btrfs: enabling auto defrag\n"); 596 btrfs_info(root->fs_info, "enabling auto defrag");
598 btrfs_set_opt(info->mount_opt, AUTO_DEFRAG); 597 btrfs_set_opt(info->mount_opt, AUTO_DEFRAG);
599 break; 598 break;
600 case Opt_recovery: 599 case Opt_recovery:
601 printk(KERN_INFO "btrfs: enabling auto recovery\n"); 600 btrfs_info(root->fs_info, "enabling auto recovery");
602 btrfs_set_opt(info->mount_opt, RECOVERY); 601 btrfs_set_opt(info->mount_opt, RECOVERY);
603 break; 602 break;
604 case Opt_skip_balance: 603 case Opt_skip_balance:
@@ -606,14 +605,14 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
606 break; 605 break;
607#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY 606#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
608 case Opt_check_integrity_including_extent_data: 607 case Opt_check_integrity_including_extent_data:
609 printk(KERN_INFO "btrfs: enabling check integrity" 608 btrfs_info(root->fs_info,
610 " including extent data\n"); 609 "enabling check integrity including extent data");
611 btrfs_set_opt(info->mount_opt, 610 btrfs_set_opt(info->mount_opt,
612 CHECK_INTEGRITY_INCLUDING_EXTENT_DATA); 611 CHECK_INTEGRITY_INCLUDING_EXTENT_DATA);
613 btrfs_set_opt(info->mount_opt, CHECK_INTEGRITY); 612 btrfs_set_opt(info->mount_opt, CHECK_INTEGRITY);
614 break; 613 break;
615 case Opt_check_integrity: 614 case Opt_check_integrity:
616 printk(KERN_INFO "btrfs: enabling check integrity\n"); 615 btrfs_info(root->fs_info, "enabling check integrity");
617 btrfs_set_opt(info->mount_opt, CHECK_INTEGRITY); 616 btrfs_set_opt(info->mount_opt, CHECK_INTEGRITY);
618 break; 617 break;
619 case Opt_check_integrity_print_mask: 618 case Opt_check_integrity_print_mask:
@@ -622,8 +621,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
622 goto out; 621 goto out;
623 } else if (intarg >= 0) { 622 } else if (intarg >= 0) {
624 info->check_integrity_print_mask = intarg; 623 info->check_integrity_print_mask = intarg;
625 printk(KERN_INFO "btrfs:" 624 btrfs_info(root->fs_info, "check_integrity_print_mask 0x%x",
626 " check_integrity_print_mask 0x%x\n",
627 info->check_integrity_print_mask); 625 info->check_integrity_print_mask);
628 } else { 626 } else {
629 ret = -EINVAL; 627 ret = -EINVAL;
@@ -634,8 +632,8 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
634 case Opt_check_integrity_including_extent_data: 632 case Opt_check_integrity_including_extent_data:
635 case Opt_check_integrity: 633 case Opt_check_integrity:
636 case Opt_check_integrity_print_mask: 634 case Opt_check_integrity_print_mask:
637 printk(KERN_ERR "btrfs: support for check_integrity*" 635 btrfs_err(root->fs_info,
638 " not compiled in!\n"); 636 "support for check_integrity* not compiled in!");
639 ret = -EINVAL; 637 ret = -EINVAL;
640 goto out; 638 goto out;
641#endif 639#endif
@@ -655,28 +653,24 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
655 intarg = 0; 653 intarg = 0;
656 ret = match_int(&args[0], &intarg); 654 ret = match_int(&args[0], &intarg);
657 if (ret < 0) { 655 if (ret < 0) {
658 printk(KERN_ERR 656 btrfs_err(root->fs_info, "invalid commit interval");
659 "btrfs: invalid commit interval\n");
660 ret = -EINVAL; 657 ret = -EINVAL;
661 goto out; 658 goto out;
662 } 659 }
663 if (intarg > 0) { 660 if (intarg > 0) {
664 if (intarg > 300) { 661 if (intarg > 300) {
665 printk(KERN_WARNING 662 btrfs_warn(root->fs_info, "excessive commit interval %d",
666 "btrfs: excessive commit interval %d\n",
667 intarg); 663 intarg);
668 } 664 }
669 info->commit_interval = intarg; 665 info->commit_interval = intarg;
670 } else { 666 } else {
671 printk(KERN_INFO 667 btrfs_info(root->fs_info, "using default commit interval %ds",
672 "btrfs: using default commit interval %ds\n",
673 BTRFS_DEFAULT_COMMIT_INTERVAL); 668 BTRFS_DEFAULT_COMMIT_INTERVAL);
674 info->commit_interval = BTRFS_DEFAULT_COMMIT_INTERVAL; 669 info->commit_interval = BTRFS_DEFAULT_COMMIT_INTERVAL;
675 } 670 }
676 break; 671 break;
677 case Opt_err: 672 case Opt_err:
678 printk(KERN_INFO "btrfs: unrecognized mount option " 673 btrfs_info(root->fs_info, "unrecognized mount option '%s'", p);
679 "'%s'\n", p);
680 ret = -EINVAL; 674 ret = -EINVAL;
681 goto out; 675 goto out;
682 default: 676 default:
@@ -685,7 +679,7 @@ int btrfs_parse_options(struct btrfs_root *root, char *options)
685 } 679 }
686out: 680out:
687 if (!ret && btrfs_test_opt(root, SPACE_CACHE)) 681 if (!ret && btrfs_test_opt(root, SPACE_CACHE))
688 printk(KERN_INFO "btrfs: disk space caching is enabled\n"); 682 btrfs_info(root->fs_info, "disk space caching is enabled");
689 kfree(orig); 683 kfree(orig);
690 return ret; 684 return ret;
691} 685}
@@ -748,7 +742,8 @@ static int btrfs_parse_early_options(const char *options, fmode_t flags,
748 break; 742 break;
749 case Opt_subvolrootid: 743 case Opt_subvolrootid:
750 printk(KERN_WARNING 744 printk(KERN_WARNING
751 "btrfs: 'subvolrootid' mount option is deprecated and has no effect\n"); 745 "BTRFS: 'subvolrootid' mount option is deprecated and has "
746 "no effect\n");
752 break; 747 break;
753 case Opt_device: 748 case Opt_device:
754 device_name = match_strdup(&args[0]); 749 device_name = match_strdup(&args[0]);
@@ -877,7 +872,7 @@ static int btrfs_fill_super(struct super_block *sb,
877 sb->s_flags |= MS_I_VERSION; 872 sb->s_flags |= MS_I_VERSION;
878 err = open_ctree(sb, fs_devices, (char *)data); 873 err = open_ctree(sb, fs_devices, (char *)data);
879 if (err) { 874 if (err) {
880 printk("btrfs: open_ctree failed\n"); 875 printk(KERN_ERR "BTRFS: open_ctree failed\n");
881 return err; 876 return err;
882 } 877 }
883 878
@@ -1115,7 +1110,7 @@ static struct dentry *mount_subvol(const char *subvol_name, int flags,
1115 dput(root); 1110 dput(root);
1116 root = ERR_PTR(-EINVAL); 1111 root = ERR_PTR(-EINVAL);
1117 deactivate_locked_super(s); 1112 deactivate_locked_super(s);
1118 printk(KERN_ERR "btrfs: '%s' is not a valid subvolume\n", 1113 printk(KERN_ERR "BTRFS: '%s' is not a valid subvolume\n",
1119 subvol_name); 1114 subvol_name);
1120 } 1115 }
1121 1116
@@ -1240,7 +1235,7 @@ static void btrfs_resize_thread_pool(struct btrfs_fs_info *fs_info,
1240 1235
1241 fs_info->thread_pool_size = new_pool_size; 1236 fs_info->thread_pool_size = new_pool_size;
1242 1237
1243 printk(KERN_INFO "btrfs: resize thread pool %d -> %d\n", 1238 btrfs_info(fs_info, "resize thread pool %d -> %d",
1244 old_pool_size, new_pool_size); 1239 old_pool_size, new_pool_size);
1245 1240
1246 btrfs_set_max_workers(&fs_info->generic_worker, new_pool_size); 1241 btrfs_set_max_workers(&fs_info->generic_worker, new_pool_size);
@@ -1346,7 +1341,7 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
1346 } else { 1341 } else {
1347 if (test_bit(BTRFS_FS_STATE_ERROR, &root->fs_info->fs_state)) { 1342 if (test_bit(BTRFS_FS_STATE_ERROR, &root->fs_info->fs_state)) {
1348 btrfs_err(fs_info, 1343 btrfs_err(fs_info,
1349 "Remounting read-write after error is not allowed\n"); 1344 "Remounting read-write after error is not allowed");
1350 ret = -EINVAL; 1345 ret = -EINVAL;
1351 goto restore; 1346 goto restore;
1352 } 1347 }
@@ -1358,8 +1353,8 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
1358 if (fs_info->fs_devices->missing_devices > 1353 if (fs_info->fs_devices->missing_devices >
1359 fs_info->num_tolerated_disk_barrier_failures && 1354 fs_info->num_tolerated_disk_barrier_failures &&
1360 !(*flags & MS_RDONLY)) { 1355 !(*flags & MS_RDONLY)) {
1361 printk(KERN_WARNING 1356 btrfs_warn(fs_info,
1362 "Btrfs: too many missing devices, writeable remount is not allowed\n"); 1357 "too many missing devices, writeable remount is not allowed");
1363 ret = -EACCES; 1358 ret = -EACCES;
1364 goto restore; 1359 goto restore;
1365 } 1360 }
@@ -1384,16 +1379,15 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
1384 1379
1385 ret = btrfs_resume_dev_replace_async(fs_info); 1380 ret = btrfs_resume_dev_replace_async(fs_info);
1386 if (ret) { 1381 if (ret) {
1387 pr_warn("btrfs: failed to resume dev_replace\n"); 1382 btrfs_warn(fs_info, "failed to resume dev_replace");
1388 goto restore; 1383 goto restore;
1389 } 1384 }
1390 1385
1391 if (!fs_info->uuid_root) { 1386 if (!fs_info->uuid_root) {
1392 pr_info("btrfs: creating UUID tree\n"); 1387 btrfs_info(fs_info, "creating UUID tree");
1393 ret = btrfs_create_uuid_tree(fs_info); 1388 ret = btrfs_create_uuid_tree(fs_info);
1394 if (ret) { 1389 if (ret) {
1395 pr_warn("btrfs: failed to create the uuid tree" 1390 btrfs_warn(fs_info, "failed to create the UUID tree %d", ret);
1396 "%d\n", ret);
1397 goto restore; 1391 goto restore;
1398 } 1392 }
1399 } 1393 }
@@ -1773,7 +1767,7 @@ static int btrfs_interface_init(void)
1773static void btrfs_interface_exit(void) 1767static void btrfs_interface_exit(void)
1774{ 1768{
1775 if (misc_deregister(&btrfs_misc) < 0) 1769 if (misc_deregister(&btrfs_misc) < 0)
1776 printk(KERN_INFO "btrfs: misc_deregister failed for control device\n"); 1770 printk(KERN_INFO "BTRFS: misc_deregister failed for control device\n");
1777} 1771}
1778 1772
1779static void btrfs_print_info(void) 1773static void btrfs_print_info(void)