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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 71345a370d9f..29f1edca76de 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -61,6 +61,7 @@
61 61
62#include <linux/namei.h> 62#include <linux/namei.h>
63#include <linux/init.h> 63#include <linux/init.h>
64#include <linux/slab.h>
64#include <linux/mount.h> 65#include <linux/mount.h>
65#include <linux/mempool.h> 66#include <linux/mempool.h>
66#include <linux/writeback.h> 67#include <linux/writeback.h>
@@ -1208,6 +1209,7 @@ xfs_fs_put_super(
1208 1209
1209 xfs_unmountfs(mp); 1210 xfs_unmountfs(mp);
1210 xfs_freesb(mp); 1211 xfs_freesb(mp);
1212 xfs_inode_shrinker_unregister(mp);
1211 xfs_icsb_destroy_counters(mp); 1213 xfs_icsb_destroy_counters(mp);
1212 xfs_close_devices(mp); 1214 xfs_close_devices(mp);
1213 xfs_dmops_put(mp); 1215 xfs_dmops_put(mp);
@@ -1621,6 +1623,8 @@ xfs_fs_fill_super(
1621 if (error) 1623 if (error)
1622 goto fail_vnrele; 1624 goto fail_vnrele;
1623 1625
1626 xfs_inode_shrinker_register(mp);
1627
1624 kfree(mtpt); 1628 kfree(mtpt);
1625 return 0; 1629 return 0;
1626 1630
@@ -1866,6 +1870,7 @@ init_xfs_fs(void)
1866 goto out_cleanup_procfs; 1870 goto out_cleanup_procfs;
1867 1871
1868 vfs_initquota(); 1872 vfs_initquota();
1873 xfs_inode_shrinker_init();
1869 1874
1870 error = register_filesystem(&xfs_fs_type); 1875 error = register_filesystem(&xfs_fs_type);
1871 if (error) 1876 if (error)
@@ -1893,6 +1898,7 @@ exit_xfs_fs(void)
1893{ 1898{
1894 vfs_exitquota(); 1899 vfs_exitquota();
1895 unregister_filesystem(&xfs_fs_type); 1900 unregister_filesystem(&xfs_fs_type);
1901 xfs_inode_shrinker_destroy();
1896 xfs_sysctl_unregister(); 1902 xfs_sysctl_unregister();
1897 xfs_cleanup_procfs(); 1903 xfs_cleanup_procfs();
1898 xfs_buf_terminate(); 1904 xfs_buf_terminate();