aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r--fs/xfs/xfs_super.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 3494eff8e4eb..8f0333b3f7a0 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -765,20 +765,18 @@ xfs_open_devices(
765 * Setup xfs_mount buffer target pointers 765 * Setup xfs_mount buffer target pointers
766 */ 766 */
767 error = ENOMEM; 767 error = ENOMEM;
768 mp->m_ddev_targp = xfs_alloc_buftarg(mp, ddev, 0, mp->m_fsname); 768 mp->m_ddev_targp = xfs_alloc_buftarg(mp, ddev);
769 if (!mp->m_ddev_targp) 769 if (!mp->m_ddev_targp)
770 goto out_close_rtdev; 770 goto out_close_rtdev;
771 771
772 if (rtdev) { 772 if (rtdev) {
773 mp->m_rtdev_targp = xfs_alloc_buftarg(mp, rtdev, 1, 773 mp->m_rtdev_targp = xfs_alloc_buftarg(mp, rtdev);
774 mp->m_fsname);
775 if (!mp->m_rtdev_targp) 774 if (!mp->m_rtdev_targp)
776 goto out_free_ddev_targ; 775 goto out_free_ddev_targ;
777 } 776 }
778 777
779 if (logdev && logdev != ddev) { 778 if (logdev && logdev != ddev) {
780 mp->m_logdev_targp = xfs_alloc_buftarg(mp, logdev, 1, 779 mp->m_logdev_targp = xfs_alloc_buftarg(mp, logdev);
781 mp->m_fsname);
782 if (!mp->m_logdev_targp) 780 if (!mp->m_logdev_targp)
783 goto out_free_rtdev_targ; 781 goto out_free_rtdev_targ;
784 } else { 782 } else {
@@ -811,8 +809,7 @@ xfs_setup_devices(
811{ 809{
812 int error; 810 int error;
813 811
814 error = xfs_setsize_buftarg(mp->m_ddev_targp, mp->m_sb.sb_blocksize, 812 error = xfs_setsize_buftarg(mp->m_ddev_targp, mp->m_sb.sb_sectsize);
815 mp->m_sb.sb_sectsize);
816 if (error) 813 if (error)
817 return error; 814 return error;
818 815
@@ -822,14 +819,12 @@ xfs_setup_devices(
822 if (xfs_sb_version_hassector(&mp->m_sb)) 819 if (xfs_sb_version_hassector(&mp->m_sb))
823 log_sector_size = mp->m_sb.sb_logsectsize; 820 log_sector_size = mp->m_sb.sb_logsectsize;
824 error = xfs_setsize_buftarg(mp->m_logdev_targp, 821 error = xfs_setsize_buftarg(mp->m_logdev_targp,
825 mp->m_sb.sb_blocksize,
826 log_sector_size); 822 log_sector_size);
827 if (error) 823 if (error)
828 return error; 824 return error;
829 } 825 }
830 if (mp->m_rtdev_targp) { 826 if (mp->m_rtdev_targp) {
831 error = xfs_setsize_buftarg(mp->m_rtdev_targp, 827 error = xfs_setsize_buftarg(mp->m_rtdev_targp,
832 mp->m_sb.sb_blocksize,
833 mp->m_sb.sb_sectsize); 828 mp->m_sb.sb_sectsize);
834 if (error) 829 if (error)
835 return error; 830 return error;
@@ -1754,13 +1749,9 @@ init_xfs_fs(void)
1754 if (error) 1749 if (error)
1755 goto out_destroy_wq; 1750 goto out_destroy_wq;
1756 1751
1757 error = xfs_filestream_init();
1758 if (error)
1759 goto out_mru_cache_uninit;
1760
1761 error = xfs_buf_init(); 1752 error = xfs_buf_init();
1762 if (error) 1753 if (error)
1763 goto out_filestream_uninit; 1754 goto out_mru_cache_uninit;
1764 1755
1765 error = xfs_init_procfs(); 1756 error = xfs_init_procfs();
1766 if (error) 1757 if (error)
@@ -1787,8 +1778,6 @@ init_xfs_fs(void)
1787 xfs_cleanup_procfs(); 1778 xfs_cleanup_procfs();
1788 out_buf_terminate: 1779 out_buf_terminate:
1789 xfs_buf_terminate(); 1780 xfs_buf_terminate();
1790 out_filestream_uninit:
1791 xfs_filestream_uninit();
1792 out_mru_cache_uninit: 1781 out_mru_cache_uninit:
1793 xfs_mru_cache_uninit(); 1782 xfs_mru_cache_uninit();
1794 out_destroy_wq: 1783 out_destroy_wq:
@@ -1807,7 +1796,6 @@ exit_xfs_fs(void)
1807 xfs_sysctl_unregister(); 1796 xfs_sysctl_unregister();
1808 xfs_cleanup_procfs(); 1797 xfs_cleanup_procfs();
1809 xfs_buf_terminate(); 1798 xfs_buf_terminate();
1810 xfs_filestream_uninit();
1811 xfs_mru_cache_uninit(); 1799 xfs_mru_cache_uninit();
1812 xfs_destroy_workqueues(); 1800 xfs_destroy_workqueues();
1813 xfs_destroy_zones(); 1801 xfs_destroy_zones();