Lines Matching refs:qinf
552 struct xfs_quotainfo *qinf) in xfs_qm_set_defquota() argument
562 defq = xfs_get_defquota(qinf, xfs_dquot_type(dqp)); in xfs_qm_set_defquota()
583 struct xfs_quotainfo *qinf = mp->m_quotainfo; in xfs_qm_init_timelimits() local
588 defq = xfs_get_defquota(qinf, type); in xfs_qm_init_timelimits()
628 struct xfs_quotainfo *qinf; in xfs_qm_init_quotainfo() local
633 qinf = mp->m_quotainfo = kmem_zalloc(sizeof(struct xfs_quotainfo), 0); in xfs_qm_init_quotainfo()
635 error = list_lru_init(&qinf->qi_lru); in xfs_qm_init_quotainfo()
647 INIT_RADIX_TREE(&qinf->qi_uquota_tree, GFP_NOFS); in xfs_qm_init_quotainfo()
648 INIT_RADIX_TREE(&qinf->qi_gquota_tree, GFP_NOFS); in xfs_qm_init_quotainfo()
649 INIT_RADIX_TREE(&qinf->qi_pquota_tree, GFP_NOFS); in xfs_qm_init_quotainfo()
650 mutex_init(&qinf->qi_tree_lock); in xfs_qm_init_quotainfo()
653 mutex_init(&qinf->qi_quotaofflock); in xfs_qm_init_quotainfo()
656 qinf->qi_dqchunklen = XFS_FSB_TO_BB(mp, XFS_DQUOT_CLUSTER_SIZE_FSB); in xfs_qm_init_quotainfo()
657 qinf->qi_dqperchunk = xfs_calc_dquots_per_chunk(qinf->qi_dqchunklen); in xfs_qm_init_quotainfo()
659 qinf->qi_expiry_min = in xfs_qm_init_quotainfo()
661 qinf->qi_expiry_max = in xfs_qm_init_quotainfo()
664 qinf->qi_expiry_min = XFS_DQ_LEGACY_EXPIRY_MIN; in xfs_qm_init_quotainfo()
665 qinf->qi_expiry_max = XFS_DQ_LEGACY_EXPIRY_MAX; in xfs_qm_init_quotainfo()
667 trace_xfs_quota_expiry_range(mp, qinf->qi_expiry_min, in xfs_qm_init_quotainfo()
668 qinf->qi_expiry_max); in xfs_qm_init_quotainfo()
677 xfs_qm_set_defquota(mp, XFS_DQTYPE_USER, qinf); in xfs_qm_init_quotainfo()
679 xfs_qm_set_defquota(mp, XFS_DQTYPE_GROUP, qinf); in xfs_qm_init_quotainfo()
681 xfs_qm_set_defquota(mp, XFS_DQTYPE_PROJ, qinf); in xfs_qm_init_quotainfo()
683 qinf->qi_shrinker.count_objects = xfs_qm_shrink_count; in xfs_qm_init_quotainfo()
684 qinf->qi_shrinker.scan_objects = xfs_qm_shrink_scan; in xfs_qm_init_quotainfo()
685 qinf->qi_shrinker.seeks = DEFAULT_SEEKS; in xfs_qm_init_quotainfo()
686 qinf->qi_shrinker.flags = SHRINKER_NUMA_AWARE; in xfs_qm_init_quotainfo()
688 error = register_shrinker(&qinf->qi_shrinker, "xfs-qm:%s", in xfs_qm_init_quotainfo()
696 mutex_destroy(&qinf->qi_quotaofflock); in xfs_qm_init_quotainfo()
697 mutex_destroy(&qinf->qi_tree_lock); in xfs_qm_init_quotainfo()
698 xfs_qm_destroy_quotainos(qinf); in xfs_qm_init_quotainfo()
700 list_lru_destroy(&qinf->qi_lru); in xfs_qm_init_quotainfo()
702 kmem_free(qinf); in xfs_qm_init_quotainfo()