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 | |
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')
-rw-r--r-- | fs/xfs/quota/xfs_dquot.c | 2 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_dquot_item.c | 6 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_qm.c | 24 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_qm.h | 6 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_qm_bhv.c | 2 | ||||
-rw-r--r-- | fs/xfs/quota/xfs_trans_dquot.c | 4 |
6 files changed, 22 insertions, 22 deletions
diff --git a/fs/xfs/quota/xfs_dquot.c b/fs/xfs/quota/xfs_dquot.c index c961ef7d847c..9ce471430a0e 100644 --- a/fs/xfs/quota/xfs_dquot.c +++ b/fs/xfs/quota/xfs_dquot.c | |||
@@ -101,7 +101,7 @@ int xfs_dqerror_mod = 33; | |||
101 | * is the d_id field. The idea is to fill in the entire q_core | 101 | * is the d_id field. The idea is to fill in the entire q_core |
102 | * when we read in the on disk dquot. | 102 | * when we read in the on disk dquot. |
103 | */ | 103 | */ |
104 | xfs_dquot_t * | 104 | STATIC xfs_dquot_t * |
105 | xfs_qm_dqinit( | 105 | xfs_qm_dqinit( |
106 | xfs_mount_t *mp, | 106 | xfs_mount_t *mp, |
107 | xfs_dqid_t id, | 107 | xfs_dqid_t id, |
diff --git a/fs/xfs/quota/xfs_dquot_item.c b/fs/xfs/quota/xfs_dquot_item.c index a5425ee6e7bd..f5271b7b1e84 100644 --- a/fs/xfs/quota/xfs_dquot_item.c +++ b/fs/xfs/quota/xfs_dquot_item.c | |||
@@ -428,7 +428,7 @@ xfs_qm_dquot_logitem_committing( | |||
428 | /* | 428 | /* |
429 | * This is the ops vector for dquots | 429 | * This is the ops vector for dquots |
430 | */ | 430 | */ |
431 | struct xfs_item_ops xfs_dquot_item_ops = { | 431 | STATIC struct xfs_item_ops xfs_dquot_item_ops = { |
432 | .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_size, | 432 | .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_size, |
433 | .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) | 433 | .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) |
434 | xfs_qm_dquot_logitem_format, | 434 | xfs_qm_dquot_logitem_format, |
@@ -646,7 +646,7 @@ xfs_qm_qoffend_logitem_committing(xfs_qoff_logitem_t *qip, xfs_lsn_t commit_lsn) | |||
646 | return; | 646 | return; |
647 | } | 647 | } |
648 | 648 | ||
649 | struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { | 649 | STATIC struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { |
650 | .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, | 650 | .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, |
651 | .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) | 651 | .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) |
652 | xfs_qm_qoff_logitem_format, | 652 | xfs_qm_qoff_logitem_format, |
@@ -669,7 +669,7 @@ struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { | |||
669 | /* | 669 | /* |
670 | * This is the ops vector shared by all quotaoff-start log items. | 670 | * This is the ops vector shared by all quotaoff-start log items. |
671 | */ | 671 | */ |
672 | struct xfs_item_ops xfs_qm_qoff_logitem_ops = { | 672 | STATIC struct xfs_item_ops xfs_qm_qoff_logitem_ops = { |
673 | .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, | 673 | .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, |
674 | .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) | 674 | .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) |
675 | xfs_qm_qoff_logitem_format, | 675 | xfs_qm_qoff_logitem_format, |
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 | { |
diff --git a/fs/xfs/quota/xfs_qm.h b/fs/xfs/quota/xfs_qm.h index dcf1a7a831d8..ae626eca5aca 100644 --- a/fs/xfs/quota/xfs_qm.h +++ b/fs/xfs/quota/xfs_qm.h | |||
@@ -184,7 +184,6 @@ typedef struct xfs_dquot_acct { | |||
184 | 184 | ||
185 | extern void xfs_mount_reset_sbqflags(xfs_mount_t *); | 185 | extern void xfs_mount_reset_sbqflags(xfs_mount_t *); |
186 | 186 | ||
187 | extern int xfs_qm_init_quotainfo(xfs_mount_t *); | ||
188 | extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); | 187 | extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); |
189 | extern int xfs_qm_mount_quotas(xfs_mount_t *, int); | 188 | extern int xfs_qm_mount_quotas(xfs_mount_t *, int); |
190 | extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); | 189 | extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); |
@@ -215,14 +214,9 @@ extern int xfs_qm_vop_chown_reserve(xfs_trans_t *, xfs_inode_t *, | |||
215 | xfs_dquot_t *, xfs_dquot_t *, uint); | 214 | xfs_dquot_t *, xfs_dquot_t *, uint); |
216 | 215 | ||
217 | /* list stuff */ | 216 | /* list stuff */ |
218 | extern void xfs_qm_freelist_init(xfs_frlist_t *); | ||
219 | extern void xfs_qm_freelist_destroy(xfs_frlist_t *); | ||
220 | extern void xfs_qm_freelist_insert(xfs_frlist_t *, xfs_dquot_t *); | ||
221 | extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); | 217 | extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); |
222 | extern void xfs_qm_freelist_unlink(xfs_dquot_t *); | 218 | extern void xfs_qm_freelist_unlink(xfs_dquot_t *); |
223 | extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); | 219 | extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); |
224 | extern int xfs_qm_mplist_nowait(xfs_mount_t *); | ||
225 | extern int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); | ||
226 | 220 | ||
227 | /* system call interface */ | 221 | /* system call interface */ |
228 | extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); | 222 | extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); |
diff --git a/fs/xfs/quota/xfs_qm_bhv.c b/fs/xfs/quota/xfs_qm_bhv.c index be67d9c265f8..09b1171dfb83 100644 --- a/fs/xfs/quota/xfs_qm_bhv.c +++ b/fs/xfs/quota/xfs_qm_bhv.c | |||
@@ -359,7 +359,7 @@ xfs_qm_dqrele_null( | |||
359 | } | 359 | } |
360 | 360 | ||
361 | 361 | ||
362 | struct xfs_qmops xfs_qmcore_xfs = { | 362 | STATIC struct xfs_qmops xfs_qmcore_xfs = { |
363 | .xfs_qminit = xfs_qm_newmount, | 363 | .xfs_qminit = xfs_qm_newmount, |
364 | .xfs_qmdone = xfs_qm_unmount_quotadestroy, | 364 | .xfs_qmdone = xfs_qm_unmount_quotadestroy, |
365 | .xfs_qmmount = xfs_qm_endmount, | 365 | .xfs_qmmount = xfs_qm_endmount, |
diff --git a/fs/xfs/quota/xfs_trans_dquot.c b/fs/xfs/quota/xfs_trans_dquot.c index 149b2a1fd949..3644ca00cc82 100644 --- a/fs/xfs/quota/xfs_trans_dquot.c +++ b/fs/xfs/quota/xfs_trans_dquot.c | |||
@@ -187,7 +187,7 @@ xfs_trans_dup_dqinfo( | |||
187 | /* | 187 | /* |
188 | * Wrap around mod_dquot to account for both user and group quotas. | 188 | * Wrap around mod_dquot to account for both user and group quotas. |
189 | */ | 189 | */ |
190 | void | 190 | STATIC void |
191 | xfs_trans_mod_dquot_byino( | 191 | xfs_trans_mod_dquot_byino( |
192 | xfs_trans_t *tp, | 192 | xfs_trans_t *tp, |
193 | xfs_inode_t *ip, | 193 | xfs_inode_t *ip, |
@@ -368,7 +368,7 @@ xfs_trans_dqlockedjoin( | |||
368 | * Unreserve just the reservations done by this transaction. | 368 | * Unreserve just the reservations done by this transaction. |
369 | * dquot is still left locked at exit. | 369 | * dquot is still left locked at exit. |
370 | */ | 370 | */ |
371 | void | 371 | STATIC void |
372 | xfs_trans_apply_dquot_deltas( | 372 | xfs_trans_apply_dquot_deltas( |
373 | xfs_trans_t *tp) | 373 | xfs_trans_t *tp) |
374 | { | 374 | { |