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_qm_bhv.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_qm_bhv.c')
-rw-r--r-- | fs/xfs/xfs_qm_bhv.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/xfs/xfs_qm_bhv.c b/fs/xfs/xfs_qm_bhv.c index 809f86857c6d..e6986b5d80d8 100644 --- a/fs/xfs/xfs_qm_bhv.c +++ b/fs/xfs/xfs_qm_bhv.c | |||
@@ -156,19 +156,3 @@ xfs_qm_newmount( | |||
156 | 156 | ||
157 | return 0; | 157 | return 0; |
158 | } | 158 | } |
159 | |||
160 | void __init | ||
161 | xfs_qm_init(void) | ||
162 | { | ||
163 | printk(KERN_INFO "SGI XFS Quota Management subsystem\n"); | ||
164 | mutex_init(&xfs_Gqm_lock); | ||
165 | } | ||
166 | |||
167 | void __exit | ||
168 | xfs_qm_exit(void) | ||
169 | { | ||
170 | if (qm_dqzone) | ||
171 | kmem_zone_destroy(qm_dqzone); | ||
172 | if (qm_dqtrxzone) | ||
173 | kmem_zone_destroy(qm_dqtrxzone); | ||
174 | } | ||