Print this page
3741 zfs needs better comments
Submitted by:   Will Andrews <willa@spectralogic.com>
Submitted by:   Justin Gibbs <justing@spectralogic.com>
Submitted by:   Alan Somers <alans@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/dmu.c
          +++ new/usr/src/uts/common/fs/zfs/dmu.c
↓ open down ↓ 1816 lines elided ↑ open up ↑
1817 1817          dnode_init();
1818 1818          dbuf_init();
1819 1819          zfetch_init();
1820 1820          l2arc_init();
1821 1821          arc_init();
1822 1822  }
1823 1823  
1824 1824  void
1825 1825  dmu_fini(void)
1826 1826  {
1827      -        arc_fini();
     1827 +        arc_fini(); /* arc depends on l2arc, so arc must go first */
1828 1828          l2arc_fini();
1829 1829          zfetch_fini();
1830 1830          dbuf_fini();
1831 1831          dnode_fini();
1832 1832          dmu_objset_fini();
1833 1833          xuio_stat_fini();
1834 1834          sa_cache_fini();
1835 1835          zfs_dbgmsg_fini();
1836 1836  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX