aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 5eddd6fcc3ab..64e92454ef1a 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -1160,6 +1160,7 @@ xfs_fs_put_super(
1160 1160
1161 xfs_unmountfs(mp); 1161 xfs_unmountfs(mp);
1162 xfs_freesb(mp); 1162 xfs_freesb(mp);
1163 xfs_inode_shrinker_unregister(mp);
1163 xfs_icsb_destroy_counters(mp); 1164 xfs_icsb_destroy_counters(mp);
1164 xfs_close_devices(mp); 1165 xfs_close_devices(mp);
1165 xfs_dmops_put(mp); 1166 xfs_dmops_put(mp);
@@ -1523,6 +1524,8 @@ xfs_fs_fill_super(
1523 if (error) 1524 if (error)
1524 goto fail_vnrele; 1525 goto fail_vnrele;
1525 1526
1527 xfs_inode_shrinker_register(mp);
1528
1526 kfree(mtpt); 1529 kfree(mtpt);
1527 return 0; 1530 return 0;
1528 1531
@@ -1767,6 +1770,7 @@ init_xfs_fs(void)
1767 goto out_cleanup_procfs; 1770 goto out_cleanup_procfs;
1768 1771
1769 vfs_initquota(); 1772 vfs_initquota();
1773 xfs_inode_shrinker_init();
1770 1774
1771 error = register_filesystem(&xfs_fs_type); 1775 error = register_filesystem(&xfs_fs_type);
1772 if (error) 1776 if (error)
@@ -1794,6 +1798,7 @@ exit_xfs_fs(void)
1794{ 1798{
1795 vfs_exitquota(); 1799 vfs_exitquota();
1796 unregister_filesystem(&xfs_fs_type); 1800 unregister_filesystem(&xfs_fs_type);
1801 xfs_inode_shrinker_destroy();
1797 xfs_sysctl_unregister(); 1802 xfs_sysctl_unregister();
1798 xfs_cleanup_procfs(); 1803 xfs_cleanup_procfs();
1799 xfs_buf_terminate(); 1804 xfs_buf_terminate();