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.h | |
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.h')
-rw-r--r-- | fs/xfs/xfs_qm.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/fs/xfs/xfs_qm.h b/fs/xfs/xfs_qm.h index 76447060cd47..44b858b79d71 100644 --- a/fs/xfs/xfs_qm.h +++ b/fs/xfs/xfs_qm.h | |||
@@ -22,13 +22,9 @@ | |||
22 | #include "xfs_dquot.h" | 22 | #include "xfs_dquot.h" |
23 | #include "xfs_quota_priv.h" | 23 | #include "xfs_quota_priv.h" |
24 | 24 | ||
25 | struct xfs_qm; | ||
26 | struct xfs_inode; | 25 | struct xfs_inode; |
27 | 26 | ||
28 | extern struct mutex xfs_Gqm_lock; | 27 | extern struct kmem_zone *xfs_qm_dqtrxzone; |
29 | extern struct xfs_qm *xfs_Gqm; | ||
30 | extern kmem_zone_t *qm_dqzone; | ||
31 | extern kmem_zone_t *qm_dqtrxzone; | ||
32 | 28 | ||
33 | /* | 29 | /* |
34 | * This defines the unit of allocation of dquots. | 30 | * This defines the unit of allocation of dquots. |
@@ -42,15 +38,6 @@ extern kmem_zone_t *qm_dqtrxzone; | |||
42 | #define XFS_DQUOT_CLUSTER_SIZE_FSB (xfs_filblks_t)1 | 38 | #define XFS_DQUOT_CLUSTER_SIZE_FSB (xfs_filblks_t)1 |
43 | 39 | ||
44 | /* | 40 | /* |
45 | * Quota Manager (global) structure. Lives only in core. | ||
46 | */ | ||
47 | typedef struct xfs_qm { | ||
48 | uint qm_nrefs; /* file systems with quota on */ | ||
49 | kmem_zone_t *qm_dqzone; /* dquot mem-alloc zone */ | ||
50 | kmem_zone_t *qm_dqtrxzone; /* t_dqinfo of transactions */ | ||
51 | } xfs_qm_t; | ||
52 | |||
53 | /* | ||
54 | * Various quota information for individual filesystems. | 41 | * Various quota information for individual filesystems. |
55 | * The mount structure keeps a pointer to this. | 42 | * The mount structure keeps a pointer to this. |
56 | */ | 43 | */ |