super.c (8b87dc17fbc7443bf4c6c096279c35e89fb51326) super.c (dc11dd5d707a4157882f281c96055d6894d10c8c)
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,

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

51#include "print-tree.h"
52#include "xattr.h"
53#include "volumes.h"
54#include "export.h"
55#include "compression.h"
56#include "rcu-string.h"
57#include "dev-replace.h"
58#include "free-space-cache.h"
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,

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

51#include "print-tree.h"
52#include "xattr.h"
53#include "volumes.h"
54#include "export.h"
55#include "compression.h"
56#include "rcu-string.h"
57#include "dev-replace.h"
58#include "free-space-cache.h"
59#include "tests/btrfs-tests.h"
59
60#define CREATE_TRACE_POINTS
61#include <trace/events/btrfs.h>
62
63static const struct super_operations btrfs_super_ops;
64static struct file_system_type btrfs_fs_type;
65
66static const char *btrfs_decode_error(int errno)

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

1757 ", debug=on"
1758#endif
1759#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
1760 ", integrity-checker=on"
1761#endif
1762 "\n");
1763}
1764
60
61#define CREATE_TRACE_POINTS
62#include <trace/events/btrfs.h>
63
64static const struct super_operations btrfs_super_ops;
65static struct file_system_type btrfs_fs_type;
66
67static const char *btrfs_decode_error(int errno)

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

1758 ", debug=on"
1759#endif
1760#ifdef CONFIG_BTRFS_FS_CHECK_INTEGRITY
1761 ", integrity-checker=on"
1762#endif
1763 "\n");
1764}
1765
1766static int btrfs_run_sanity_tests(void)
1767{
1768 return btrfs_test_free_space_cache();
1769}
1770
1765static int __init init_btrfs_fs(void)
1766{
1767 int err;
1768
1769 err = btrfs_init_sysfs();
1770 if (err)
1771 return err;
1772

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

1799 err = btrfs_delayed_ref_init();
1800 if (err)
1801 goto free_auto_defrag;
1802
1803 err = btrfs_interface_init();
1804 if (err)
1805 goto free_delayed_ref;
1806
1771static int __init init_btrfs_fs(void)
1772{
1773 int err;
1774
1775 err = btrfs_init_sysfs();
1776 if (err)
1777 return err;
1778

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

1805 err = btrfs_delayed_ref_init();
1806 if (err)
1807 goto free_auto_defrag;
1808
1809 err = btrfs_interface_init();
1810 if (err)
1811 goto free_delayed_ref;
1812
1807 err = register_filesystem(&btrfs_fs_type);
1808 if (err)
1809 goto unregister_ioctl;
1810
1811 btrfs_init_lockdep();
1812
1813 btrfs_print_info();
1813 btrfs_init_lockdep();
1814
1815 btrfs_print_info();
1814 btrfs_test_free_space_cache();
1815
1816
1817 err = btrfs_run_sanity_tests();
1818 if (err)
1819 goto unregister_ioctl;
1820
1821 err = register_filesystem(&btrfs_fs_type);
1822 if (err)
1823 goto unregister_ioctl;
1824
1816 return 0;
1817
1818unregister_ioctl:
1819 btrfs_interface_exit();
1820free_delayed_ref:
1821 btrfs_delayed_ref_exit();
1822free_auto_defrag:
1823 btrfs_auto_defrag_exit();

--- 36 unchanged lines hidden ---
1825 return 0;
1826
1827unregister_ioctl:
1828 btrfs_interface_exit();
1829free_delayed_ref:
1830 btrfs_delayed_ref_exit();
1831free_auto_defrag:
1832 btrfs_auto_defrag_exit();

--- 36 unchanged lines hidden ---