diff options
author | Christoph Hellwig <hch@sgi.com> | 2005-06-21 01:36:52 -0400 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2005-06-21 01:36:52 -0400 |
commit | ba0f32d46049e2b625dabd33c7964f8ca2cd7651 (patch) | |
tree | e48dde981e091570870173b5e4f0ec42f01d197d /fs/xfs/quota/xfs_qm.c | |
parent | 4372d6e10349d4e8b012588f86f15c740c73a7c4 (diff) |
[XFS] mark various symbols static Patch from Adrian Bunk
SGI-PV: 936255
SGI-Modid: xfs-linux:xfs-kern:192760a
Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/quota/xfs_qm.c')
-rw-r--r-- | fs/xfs/quota/xfs_qm.c | 24 |
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 | ||
82 | kmem_zone_t *qm_dqzone; | 82 | kmem_zone_t *qm_dqzone; |
83 | kmem_zone_t *qm_dqtrxzone; | 83 | kmem_zone_t *qm_dqtrxzone; |
84 | kmem_shaker_t xfs_qm_shaker; | 84 | STATIC kmem_shaker_t xfs_qm_shaker; |
85 | 85 | ||
86 | STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); | 86 | STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); |
87 | STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); | 87 | STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); |
88 | 88 | ||
89 | STATIC void xfs_qm_freelist_init(xfs_frlist_t *); | ||
90 | STATIC void xfs_qm_freelist_destroy(xfs_frlist_t *); | ||
91 | STATIC int xfs_qm_mplist_nowait(xfs_mount_t *); | ||
92 | STATIC int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); | ||
93 | |||
89 | STATIC int xfs_qm_init_quotainos(xfs_mount_t *); | 94 | STATIC int xfs_qm_init_quotainos(xfs_mount_t *); |
95 | STATIC int xfs_qm_init_quotainfo(xfs_mount_t *); | ||
90 | STATIC int xfs_qm_shake(int, unsigned int); | 96 | STATIC 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 | */ |
187 | void | 193 | STATIC void |
188 | xfs_qm_destroy( | 194 | xfs_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 | */ |
512 | int | 518 | STATIC int |
513 | xfs_qm_dqflush_all( | 519 | xfs_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 | */ |
1152 | int | 1158 | STATIC int |
1153 | xfs_qm_init_quotainfo( | 1159 | xfs_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 -----------------*/ |
2754 | void | 2760 | STATIC void |
2755 | xfs_qm_freelist_init(xfs_frlist_t *ql) | 2761 | xfs_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 | ||
2763 | void | 2769 | STATIC void |
2764 | xfs_qm_freelist_destroy(xfs_frlist_t *ql) | 2770 | xfs_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 | ||
2789 | void | 2795 | STATIC void |
2790 | xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) | 2796 | xfs_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 | ||
2819 | int | 2825 | STATIC int |
2820 | xfs_qm_dqhashlock_nowait( | 2826 | xfs_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 | ||
2839 | int | 2845 | STATIC int |
2840 | xfs_qm_mplist_nowait( | 2846 | xfs_qm_mplist_nowait( |
2841 | xfs_mount_t *mp) | 2847 | xfs_mount_t *mp) |
2842 | { | 2848 | { |