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.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_super.h')
-rw-r--r-- | fs/xfs/xfs_super.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/xfs/xfs_super.h b/fs/xfs/xfs_super.h index 50a3266c999e..09b0c26b2245 100644 --- a/fs/xfs/xfs_super.h +++ b/fs/xfs/xfs_super.h | |||
@@ -21,13 +21,11 @@ | |||
21 | #include <linux/exportfs.h> | 21 | #include <linux/exportfs.h> |
22 | 22 | ||
23 | #ifdef CONFIG_XFS_QUOTA | 23 | #ifdef CONFIG_XFS_QUOTA |
24 | extern void xfs_qm_init(void); | 24 | extern int xfs_qm_init(void); |
25 | extern void xfs_qm_exit(void); | 25 | extern void xfs_qm_exit(void); |
26 | # define vfs_initquota() xfs_qm_init() | ||
27 | # define vfs_exitquota() xfs_qm_exit() | ||
28 | #else | 26 | #else |
29 | # define vfs_initquota() do { } while (0) | 27 | # define xfs_qm_init() (0) |
30 | # define vfs_exitquota() do { } while (0) | 28 | # define xfs_qm_exit() do { } while (0) |
31 | #endif | 29 | #endif |
32 | 30 | ||
33 | #ifdef CONFIG_XFS_POSIX_ACL | 31 | #ifdef CONFIG_XFS_POSIX_ACL |