diff options
Diffstat (limited to 'fs/btrfs/super.c')
-rw-r--r-- | fs/btrfs/super.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 8b52c69fda2e..f8a1016600b1 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -468,10 +468,15 @@ static int __init init_btrfs_fs(void) | |||
468 | err = btrfs_init_cachep(); | 468 | err = btrfs_init_cachep(); |
469 | if (err) | 469 | if (err) |
470 | goto free_transaction_sys; | 470 | goto free_transaction_sys; |
471 | err = extent_map_init(); | 471 | |
472 | err = extent_io_init(); | ||
472 | if (err) | 473 | if (err) |
473 | goto free_cachep; | 474 | goto free_cachep; |
474 | 475 | ||
476 | err = extent_map_init(); | ||
477 | if (err) | ||
478 | goto free_extent_io; | ||
479 | |||
475 | err = register_filesystem(&btrfs_fs_type); | 480 | err = register_filesystem(&btrfs_fs_type); |
476 | if (err) | 481 | if (err) |
477 | goto free_extent_map; | 482 | goto free_extent_map; |
@@ -479,6 +484,8 @@ static int __init init_btrfs_fs(void) | |||
479 | 484 | ||
480 | free_extent_map: | 485 | free_extent_map: |
481 | extent_map_exit(); | 486 | extent_map_exit(); |
487 | free_extent_io: | ||
488 | extent_io_exit(); | ||
482 | free_cachep: | 489 | free_cachep: |
483 | btrfs_destroy_cachep(); | 490 | btrfs_destroy_cachep(); |
484 | free_transaction_sys: | 491 | free_transaction_sys: |
@@ -492,6 +499,7 @@ static void __exit exit_btrfs_fs(void) | |||
492 | btrfs_exit_transaction_sys(); | 499 | btrfs_exit_transaction_sys(); |
493 | btrfs_destroy_cachep(); | 500 | btrfs_destroy_cachep(); |
494 | extent_map_exit(); | 501 | extent_map_exit(); |
502 | extent_io_exit(); | ||
495 | unregister_filesystem(&btrfs_fs_type); | 503 | unregister_filesystem(&btrfs_fs_type); |
496 | btrfs_exit_sysfs(); | 504 | btrfs_exit_sysfs(); |
497 | } | 505 | } |