diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-03-13 04:52:37 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-03-14 13:06:32 -0400 |
commit | a05931ceb0160deadbd7798d60d01b17f2d81b09 (patch) | |
tree | ca56811415e970149cc99b8b7f6ec9a4677d6025 /fs/xfs/xfs_super.c | |
parent | b84a3a96751f93071c1863f2962273973c8b8f5e (diff) |
xfs: remove the global xfs_Gqm structure
If we initialize the slab caches for the quota code when XFS is loaded there
is no need for a global and reference counted quota manager structure. Drop
all this overhead and also fix the error handling during quota initialization.
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index e9ad7894648e..06d23b976f4c 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -1654,13 +1654,17 @@ init_xfs_fs(void) | |||
1654 | if (error) | 1654 | if (error) |
1655 | goto out_cleanup_procfs; | 1655 | goto out_cleanup_procfs; |
1656 | 1656 | ||
1657 | vfs_initquota(); | 1657 | error = xfs_qm_init(); |
1658 | if (error) | ||
1659 | goto out_sysctl_unregister; | ||
1658 | 1660 | ||
1659 | error = register_filesystem(&xfs_fs_type); | 1661 | error = register_filesystem(&xfs_fs_type); |
1660 | if (error) | 1662 | if (error) |
1661 | goto out_sysctl_unregister; | 1663 | goto out_qm_exit; |
1662 | return 0; | 1664 | return 0; |
1663 | 1665 | ||
1666 | out_qm_exit: | ||
1667 | xfs_qm_exit(); | ||
1664 | out_sysctl_unregister: | 1668 | out_sysctl_unregister: |
1665 | xfs_sysctl_unregister(); | 1669 | xfs_sysctl_unregister(); |
1666 | out_cleanup_procfs: | 1670 | out_cleanup_procfs: |
@@ -1682,7 +1686,7 @@ init_xfs_fs(void) | |||
1682 | STATIC void __exit | 1686 | STATIC void __exit |
1683 | exit_xfs_fs(void) | 1687 | exit_xfs_fs(void) |
1684 | { | 1688 | { |
1685 | vfs_exitquota(); | 1689 | xfs_qm_exit(); |
1686 | unregister_filesystem(&xfs_fs_type); | 1690 | unregister_filesystem(&xfs_fs_type); |
1687 | xfs_sysctl_unregister(); | 1691 | xfs_sysctl_unregister(); |
1688 | xfs_cleanup_procfs(); | 1692 | xfs_cleanup_procfs(); |