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>
This commit is contained in:

committed by
Ben Myers

parent
b84a3a9675
commit
a05931ceb0
@@ -156,19 +156,3 @@ xfs_qm_newmount(
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void __init
|
||||
xfs_qm_init(void)
|
||||
{
|
||||
printk(KERN_INFO "SGI XFS Quota Management subsystem\n");
|
||||
mutex_init(&xfs_Gqm_lock);
|
||||
}
|
||||
|
||||
void __exit
|
||||
xfs_qm_exit(void)
|
||||
{
|
||||
if (qm_dqzone)
|
||||
kmem_zone_destroy(qm_dqzone);
|
||||
if (qm_dqtrxzone)
|
||||
kmem_zone_destroy(qm_dqtrxzone);
|
||||
}
|
||||
|
Reference in New Issue
Block a user