aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/quota/xfs_qm.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-rw-r--r--fs/xfs/quota/xfs_qm.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/fs/xfs/quota/xfs_qm.c b/fs/xfs/quota/xfs_qm.c
index 89f2cd656ebf..41bbc49d535e 100644
--- a/fs/xfs/quota/xfs_qm.c
+++ b/fs/xfs/quota/xfs_qm.c
@@ -81,12 +81,18 @@ struct xfs_qm *xfs_Gqm;
81 81
82kmem_zone_t *qm_dqzone; 82kmem_zone_t *qm_dqzone;
83kmem_zone_t *qm_dqtrxzone; 83kmem_zone_t *qm_dqtrxzone;
84kmem_shaker_t xfs_qm_shaker; 84STATIC kmem_shaker_t xfs_qm_shaker;
85 85
86STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); 86STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int);
87STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); 87STATIC void xfs_qm_list_destroy(xfs_dqlist_t *);
88 88
89STATIC void xfs_qm_freelist_init(xfs_frlist_t *);
90STATIC void xfs_qm_freelist_destroy(xfs_frlist_t *);
91STATIC int xfs_qm_mplist_nowait(xfs_mount_t *);
92STATIC int xfs_qm_dqhashlock_nowait(xfs_dquot_t *);
93
89STATIC int xfs_qm_init_quotainos(xfs_mount_t *); 94STATIC int xfs_qm_init_quotainos(xfs_mount_t *);
95STATIC int xfs_qm_init_quotainfo(xfs_mount_t *);
90STATIC int xfs_qm_shake(int, unsigned int); 96STATIC int xfs_qm_shake(int, unsigned int);
91 97
92#ifdef DEBUG 98#ifdef DEBUG
@@ -184,7 +190,7 @@ xfs_Gqm_init(void)
184/* 190/*
185 * Destroy the global quota manager when its reference count goes to zero. 191 * Destroy the global quota manager when its reference count goes to zero.
186 */ 192 */
187void 193STATIC void
188xfs_qm_destroy( 194xfs_qm_destroy(
189 struct xfs_qm *xqm) 195 struct xfs_qm *xqm)
190{ 196{
@@ -509,7 +515,7 @@ out:
509 * Flush all dquots of the given file system to disk. The dquots are 515 * Flush all dquots of the given file system to disk. The dquots are
510 * _not_ purged from memory here, just their data written to disk. 516 * _not_ purged from memory here, just their data written to disk.
511 */ 517 */
512int 518STATIC int
513xfs_qm_dqflush_all( 519xfs_qm_dqflush_all(
514 xfs_mount_t *mp, 520 xfs_mount_t *mp,
515 int flags) 521 int flags)
@@ -1149,7 +1155,7 @@ xfs_qm_sync(
1149 * This initializes all the quota information that's kept in the 1155 * This initializes all the quota information that's kept in the
1150 * mount structure 1156 * mount structure
1151 */ 1157 */
1152int 1158STATIC int
1153xfs_qm_init_quotainfo( 1159xfs_qm_init_quotainfo(
1154 xfs_mount_t *mp) 1160 xfs_mount_t *mp)
1155{ 1161{
@@ -2751,7 +2757,7 @@ xfs_qm_vop_dqattach_and_dqmod_newinode(
2751} 2757}
2752 2758
2753/* ------------- list stuff -----------------*/ 2759/* ------------- list stuff -----------------*/
2754void 2760STATIC void
2755xfs_qm_freelist_init(xfs_frlist_t *ql) 2761xfs_qm_freelist_init(xfs_frlist_t *ql)
2756{ 2762{
2757 ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql; 2763 ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql;
@@ -2760,7 +2766,7 @@ xfs_qm_freelist_init(xfs_frlist_t *ql)
2760 ql->qh_nelems = 0; 2766 ql->qh_nelems = 0;
2761} 2767}
2762 2768
2763void 2769STATIC void
2764xfs_qm_freelist_destroy(xfs_frlist_t *ql) 2770xfs_qm_freelist_destroy(xfs_frlist_t *ql)
2765{ 2771{
2766 xfs_dquot_t *dqp, *nextdqp; 2772 xfs_dquot_t *dqp, *nextdqp;
@@ -2786,7 +2792,7 @@ xfs_qm_freelist_destroy(xfs_frlist_t *ql)
2786 ASSERT(ql->qh_nelems == 0); 2792 ASSERT(ql->qh_nelems == 0);
2787} 2793}
2788 2794
2789void 2795STATIC void
2790xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) 2796xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq)
2791{ 2797{
2792 dq->dq_flnext = ql->qh_next; 2798 dq->dq_flnext = ql->qh_next;
@@ -2816,7 +2822,7 @@ xfs_qm_freelist_append(xfs_frlist_t *ql, xfs_dquot_t *dq)
2816 xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq); 2822 xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq);
2817} 2823}
2818 2824
2819int 2825STATIC int
2820xfs_qm_dqhashlock_nowait( 2826xfs_qm_dqhashlock_nowait(
2821 xfs_dquot_t *dqp) 2827 xfs_dquot_t *dqp)
2822{ 2828{
@@ -2836,7 +2842,7 @@ xfs_qm_freelist_lock_nowait(
2836 return (locked); 2842 return (locked);
2837} 2843}
2838 2844
2839int 2845STATIC int
2840xfs_qm_mplist_nowait( 2846xfs_qm_mplist_nowait(
2841 xfs_mount_t *mp) 2847 xfs_mount_t *mp)
2842{ 2848{