Loading fs/xfs/quota/xfs_dquot.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -101,7 +101,7 @@ int xfs_dqerror_mod = 33; * is the d_id field. The idea is to fill in the entire q_core * is the d_id field. The idea is to fill in the entire q_core * when we read in the on disk dquot. * when we read in the on disk dquot. */ */ xfs_dquot_t * STATIC xfs_dquot_t * xfs_qm_dqinit( xfs_qm_dqinit( xfs_mount_t *mp, xfs_mount_t *mp, xfs_dqid_t id, xfs_dqid_t id, Loading fs/xfs/quota/xfs_dquot_item.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -428,7 +428,7 @@ xfs_qm_dquot_logitem_committing( /* /* * This is the ops vector for dquots * This is the ops vector for dquots */ */ struct xfs_item_ops xfs_dquot_item_ops = { STATIC struct xfs_item_ops xfs_dquot_item_ops = { .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_size, .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_size, .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) xfs_qm_dquot_logitem_format, xfs_qm_dquot_logitem_format, Loading Loading @@ -646,7 +646,7 @@ xfs_qm_qoffend_logitem_committing(xfs_qoff_logitem_t *qip, xfs_lsn_t commit_lsn) return; return; } } struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { STATIC struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) xfs_qm_qoff_logitem_format, xfs_qm_qoff_logitem_format, Loading @@ -669,7 +669,7 @@ struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { /* /* * This is the ops vector shared by all quotaoff-start log items. * This is the ops vector shared by all quotaoff-start log items. */ */ struct xfs_item_ops xfs_qm_qoff_logitem_ops = { STATIC struct xfs_item_ops xfs_qm_qoff_logitem_ops = { .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) xfs_qm_qoff_logitem_format, xfs_qm_qoff_logitem_format, Loading fs/xfs/quota/xfs_qm.c +15 −9 Original line number Original line Diff line number Diff line Loading @@ -81,12 +81,18 @@ struct xfs_qm *xfs_Gqm; kmem_zone_t *qm_dqzone; kmem_zone_t *qm_dqzone; kmem_zone_t *qm_dqtrxzone; kmem_zone_t *qm_dqtrxzone; kmem_shaker_t xfs_qm_shaker; STATIC kmem_shaker_t xfs_qm_shaker; STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); STATIC void xfs_qm_freelist_init(xfs_frlist_t *); STATIC void xfs_qm_freelist_destroy(xfs_frlist_t *); STATIC int xfs_qm_mplist_nowait(xfs_mount_t *); STATIC int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); STATIC int xfs_qm_init_quotainos(xfs_mount_t *); STATIC int xfs_qm_init_quotainos(xfs_mount_t *); STATIC int xfs_qm_init_quotainfo(xfs_mount_t *); STATIC int xfs_qm_shake(int, unsigned int); STATIC int xfs_qm_shake(int, unsigned int); #ifdef DEBUG #ifdef DEBUG Loading Loading @@ -184,7 +190,7 @@ xfs_Gqm_init(void) /* /* * Destroy the global quota manager when its reference count goes to zero. * Destroy the global quota manager when its reference count goes to zero. */ */ void STATIC void xfs_qm_destroy( xfs_qm_destroy( struct xfs_qm *xqm) struct xfs_qm *xqm) { { Loading Loading @@ -509,7 +515,7 @@ xfs_qm_unmount_quotas( * Flush all dquots of the given file system to disk. The dquots are * Flush all dquots of the given file system to disk. The dquots are * _not_ purged from memory here, just their data written to disk. * _not_ purged from memory here, just their data written to disk. */ */ int STATIC int xfs_qm_dqflush_all( xfs_qm_dqflush_all( xfs_mount_t *mp, xfs_mount_t *mp, int flags) int flags) Loading Loading @@ -1149,7 +1155,7 @@ xfs_qm_sync( * This initializes all the quota information that's kept in the * This initializes all the quota information that's kept in the * mount structure * mount structure */ */ int STATIC int xfs_qm_init_quotainfo( xfs_qm_init_quotainfo( xfs_mount_t *mp) xfs_mount_t *mp) { { Loading Loading @@ -2751,7 +2757,7 @@ xfs_qm_vop_dqattach_and_dqmod_newinode( } } /* ------------- list stuff -----------------*/ /* ------------- list stuff -----------------*/ void STATIC void xfs_qm_freelist_init(xfs_frlist_t *ql) xfs_qm_freelist_init(xfs_frlist_t *ql) { { ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql; ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql; Loading @@ -2760,7 +2766,7 @@ xfs_qm_freelist_init(xfs_frlist_t *ql) ql->qh_nelems = 0; ql->qh_nelems = 0; } } void STATIC void xfs_qm_freelist_destroy(xfs_frlist_t *ql) xfs_qm_freelist_destroy(xfs_frlist_t *ql) { { xfs_dquot_t *dqp, *nextdqp; xfs_dquot_t *dqp, *nextdqp; Loading @@ -2786,7 +2792,7 @@ xfs_qm_freelist_destroy(xfs_frlist_t *ql) ASSERT(ql->qh_nelems == 0); ASSERT(ql->qh_nelems == 0); } } void STATIC void xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) { { dq->dq_flnext = ql->qh_next; dq->dq_flnext = ql->qh_next; Loading Loading @@ -2816,7 +2822,7 @@ xfs_qm_freelist_append(xfs_frlist_t *ql, xfs_dquot_t *dq) xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq); xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq); } } int STATIC int xfs_qm_dqhashlock_nowait( xfs_qm_dqhashlock_nowait( xfs_dquot_t *dqp) xfs_dquot_t *dqp) { { Loading @@ -2836,7 +2842,7 @@ xfs_qm_freelist_lock_nowait( return (locked); return (locked); } } int STATIC int xfs_qm_mplist_nowait( xfs_qm_mplist_nowait( xfs_mount_t *mp) xfs_mount_t *mp) { { Loading fs/xfs/quota/xfs_qm.h +0 −6 Original line number Original line Diff line number Diff line Loading @@ -184,7 +184,6 @@ typedef struct xfs_dquot_acct { extern void xfs_mount_reset_sbqflags(xfs_mount_t *); extern void xfs_mount_reset_sbqflags(xfs_mount_t *); extern int xfs_qm_init_quotainfo(xfs_mount_t *); extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); extern int xfs_qm_mount_quotas(xfs_mount_t *, int); extern int xfs_qm_mount_quotas(xfs_mount_t *, int); extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); Loading Loading @@ -215,14 +214,9 @@ extern int xfs_qm_vop_chown_reserve(xfs_trans_t *, xfs_inode_t *, xfs_dquot_t *, xfs_dquot_t *, uint); xfs_dquot_t *, xfs_dquot_t *, uint); /* list stuff */ /* list stuff */ extern void xfs_qm_freelist_init(xfs_frlist_t *); extern void xfs_qm_freelist_destroy(xfs_frlist_t *); extern void xfs_qm_freelist_insert(xfs_frlist_t *, xfs_dquot_t *); extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); extern void xfs_qm_freelist_unlink(xfs_dquot_t *); extern void xfs_qm_freelist_unlink(xfs_dquot_t *); extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); extern int xfs_qm_mplist_nowait(xfs_mount_t *); extern int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); /* system call interface */ /* system call interface */ extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); Loading fs/xfs/quota/xfs_qm_bhv.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -359,7 +359,7 @@ xfs_qm_dqrele_null( } } struct xfs_qmops xfs_qmcore_xfs = { STATIC struct xfs_qmops xfs_qmcore_xfs = { .xfs_qminit = xfs_qm_newmount, .xfs_qminit = xfs_qm_newmount, .xfs_qmdone = xfs_qm_unmount_quotadestroy, .xfs_qmdone = xfs_qm_unmount_quotadestroy, .xfs_qmmount = xfs_qm_endmount, .xfs_qmmount = xfs_qm_endmount, Loading Loading
fs/xfs/quota/xfs_dquot.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -101,7 +101,7 @@ int xfs_dqerror_mod = 33; * is the d_id field. The idea is to fill in the entire q_core * is the d_id field. The idea is to fill in the entire q_core * when we read in the on disk dquot. * when we read in the on disk dquot. */ */ xfs_dquot_t * STATIC xfs_dquot_t * xfs_qm_dqinit( xfs_qm_dqinit( xfs_mount_t *mp, xfs_mount_t *mp, xfs_dqid_t id, xfs_dqid_t id, Loading
fs/xfs/quota/xfs_dquot_item.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -428,7 +428,7 @@ xfs_qm_dquot_logitem_committing( /* /* * This is the ops vector for dquots * This is the ops vector for dquots */ */ struct xfs_item_ops xfs_dquot_item_ops = { STATIC struct xfs_item_ops xfs_dquot_item_ops = { .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_size, .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_dquot_logitem_size, .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) xfs_qm_dquot_logitem_format, xfs_qm_dquot_logitem_format, Loading Loading @@ -646,7 +646,7 @@ xfs_qm_qoffend_logitem_committing(xfs_qoff_logitem_t *qip, xfs_lsn_t commit_lsn) return; return; } } struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { STATIC struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) xfs_qm_qoff_logitem_format, xfs_qm_qoff_logitem_format, Loading @@ -669,7 +669,7 @@ struct xfs_item_ops xfs_qm_qoffend_logitem_ops = { /* /* * This is the ops vector shared by all quotaoff-start log items. * This is the ops vector shared by all quotaoff-start log items. */ */ struct xfs_item_ops xfs_qm_qoff_logitem_ops = { STATIC struct xfs_item_ops xfs_qm_qoff_logitem_ops = { .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_size = (uint(*)(xfs_log_item_t*))xfs_qm_qoff_logitem_size, .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) .iop_format = (void(*)(xfs_log_item_t*, xfs_log_iovec_t*)) xfs_qm_qoff_logitem_format, xfs_qm_qoff_logitem_format, Loading
fs/xfs/quota/xfs_qm.c +15 −9 Original line number Original line Diff line number Diff line Loading @@ -81,12 +81,18 @@ struct xfs_qm *xfs_Gqm; kmem_zone_t *qm_dqzone; kmem_zone_t *qm_dqzone; kmem_zone_t *qm_dqtrxzone; kmem_zone_t *qm_dqtrxzone; kmem_shaker_t xfs_qm_shaker; STATIC kmem_shaker_t xfs_qm_shaker; STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); STATIC void xfs_qm_list_init(xfs_dqlist_t *, char *, int); STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); STATIC void xfs_qm_list_destroy(xfs_dqlist_t *); STATIC void xfs_qm_freelist_init(xfs_frlist_t *); STATIC void xfs_qm_freelist_destroy(xfs_frlist_t *); STATIC int xfs_qm_mplist_nowait(xfs_mount_t *); STATIC int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); STATIC int xfs_qm_init_quotainos(xfs_mount_t *); STATIC int xfs_qm_init_quotainos(xfs_mount_t *); STATIC int xfs_qm_init_quotainfo(xfs_mount_t *); STATIC int xfs_qm_shake(int, unsigned int); STATIC int xfs_qm_shake(int, unsigned int); #ifdef DEBUG #ifdef DEBUG Loading Loading @@ -184,7 +190,7 @@ xfs_Gqm_init(void) /* /* * Destroy the global quota manager when its reference count goes to zero. * Destroy the global quota manager when its reference count goes to zero. */ */ void STATIC void xfs_qm_destroy( xfs_qm_destroy( struct xfs_qm *xqm) struct xfs_qm *xqm) { { Loading Loading @@ -509,7 +515,7 @@ xfs_qm_unmount_quotas( * Flush all dquots of the given file system to disk. The dquots are * Flush all dquots of the given file system to disk. The dquots are * _not_ purged from memory here, just their data written to disk. * _not_ purged from memory here, just their data written to disk. */ */ int STATIC int xfs_qm_dqflush_all( xfs_qm_dqflush_all( xfs_mount_t *mp, xfs_mount_t *mp, int flags) int flags) Loading Loading @@ -1149,7 +1155,7 @@ xfs_qm_sync( * This initializes all the quota information that's kept in the * This initializes all the quota information that's kept in the * mount structure * mount structure */ */ int STATIC int xfs_qm_init_quotainfo( xfs_qm_init_quotainfo( xfs_mount_t *mp) xfs_mount_t *mp) { { Loading Loading @@ -2751,7 +2757,7 @@ xfs_qm_vop_dqattach_and_dqmod_newinode( } } /* ------------- list stuff -----------------*/ /* ------------- list stuff -----------------*/ void STATIC void xfs_qm_freelist_init(xfs_frlist_t *ql) xfs_qm_freelist_init(xfs_frlist_t *ql) { { ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql; ql->qh_next = ql->qh_prev = (xfs_dquot_t *) ql; Loading @@ -2760,7 +2766,7 @@ xfs_qm_freelist_init(xfs_frlist_t *ql) ql->qh_nelems = 0; ql->qh_nelems = 0; } } void STATIC void xfs_qm_freelist_destroy(xfs_frlist_t *ql) xfs_qm_freelist_destroy(xfs_frlist_t *ql) { { xfs_dquot_t *dqp, *nextdqp; xfs_dquot_t *dqp, *nextdqp; Loading @@ -2786,7 +2792,7 @@ xfs_qm_freelist_destroy(xfs_frlist_t *ql) ASSERT(ql->qh_nelems == 0); ASSERT(ql->qh_nelems == 0); } } void STATIC void xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) xfs_qm_freelist_insert(xfs_frlist_t *ql, xfs_dquot_t *dq) { { dq->dq_flnext = ql->qh_next; dq->dq_flnext = ql->qh_next; Loading Loading @@ -2816,7 +2822,7 @@ xfs_qm_freelist_append(xfs_frlist_t *ql, xfs_dquot_t *dq) xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq); xfs_qm_freelist_insert((xfs_frlist_t *)ql->qh_prev, dq); } } int STATIC int xfs_qm_dqhashlock_nowait( xfs_qm_dqhashlock_nowait( xfs_dquot_t *dqp) xfs_dquot_t *dqp) { { Loading @@ -2836,7 +2842,7 @@ xfs_qm_freelist_lock_nowait( return (locked); return (locked); } } int STATIC int xfs_qm_mplist_nowait( xfs_qm_mplist_nowait( xfs_mount_t *mp) xfs_mount_t *mp) { { Loading
fs/xfs/quota/xfs_qm.h +0 −6 Original line number Original line Diff line number Diff line Loading @@ -184,7 +184,6 @@ typedef struct xfs_dquot_acct { extern void xfs_mount_reset_sbqflags(xfs_mount_t *); extern void xfs_mount_reset_sbqflags(xfs_mount_t *); extern int xfs_qm_init_quotainfo(xfs_mount_t *); extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); extern void xfs_qm_destroy_quotainfo(xfs_mount_t *); extern int xfs_qm_mount_quotas(xfs_mount_t *, int); extern int xfs_qm_mount_quotas(xfs_mount_t *, int); extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); extern void xfs_qm_mount_quotainit(xfs_mount_t *, uint); Loading Loading @@ -215,14 +214,9 @@ extern int xfs_qm_vop_chown_reserve(xfs_trans_t *, xfs_inode_t *, xfs_dquot_t *, xfs_dquot_t *, uint); xfs_dquot_t *, xfs_dquot_t *, uint); /* list stuff */ /* list stuff */ extern void xfs_qm_freelist_init(xfs_frlist_t *); extern void xfs_qm_freelist_destroy(xfs_frlist_t *); extern void xfs_qm_freelist_insert(xfs_frlist_t *, xfs_dquot_t *); extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); extern void xfs_qm_freelist_append(xfs_frlist_t *, xfs_dquot_t *); extern void xfs_qm_freelist_unlink(xfs_dquot_t *); extern void xfs_qm_freelist_unlink(xfs_dquot_t *); extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); extern int xfs_qm_freelist_lock_nowait(xfs_qm_t *); extern int xfs_qm_mplist_nowait(xfs_mount_t *); extern int xfs_qm_dqhashlock_nowait(xfs_dquot_t *); /* system call interface */ /* system call interface */ extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); extern int xfs_qm_quotactl(bhv_desc_t *, int, int, xfs_caddr_t); Loading
fs/xfs/quota/xfs_qm_bhv.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -359,7 +359,7 @@ xfs_qm_dqrele_null( } } struct xfs_qmops xfs_qmcore_xfs = { STATIC struct xfs_qmops xfs_qmcore_xfs = { .xfs_qminit = xfs_qm_newmount, .xfs_qminit = xfs_qm_newmount, .xfs_qmdone = xfs_qm_unmount_quotadestroy, .xfs_qmdone = xfs_qm_unmount_quotadestroy, .xfs_qmmount = xfs_qm_endmount, .xfs_qmmount = xfs_qm_endmount, Loading