/titanic_44/usr/src/uts/common/fs/ufs/ |
H A D | quota.c | 128 register struct dquot *dqp; in qtinit2() local 146 for (dqp = dquot; dqp < dquotNDQUOT; dqp++) { in qtinit2() 147 mutex_init(&dqp->dq_lock, NULL, MUTEX_DEFAULT, NULL); in qtinit2() 148 dqp->dq_forw = dqp->dq_back = dqp; in qtinit2() 149 dqinsheadfree(dqp); in qtinit2() 164 struct dquot *dqp; in getdiskquota() local 189 for (dqp = dhp->dqh_forw; dqp != (DQptr)dhp; dqp = dqp->dq_forw) { in getdiskquota() 190 if (dqp->dq_uid != uid || dqp->dq_ufsvfsp != ufsvfsp) in getdiskquota() 193 mutex_enter(&dqp->dq_lock); in getdiskquota() 198 if (dqp->dq_uid != uid || dqp->dq_ufsvfsp != ufsvfsp) { in getdiskquota() [all …]
|
H A D | quota_ufs.c | 76 struct dquot *dqp, *xdqp; in getinoquota() local 106 dqp = xdqp; in getinoquota() 107 mutex_enter(&dqp->dq_lock); in getinoquota() 108 ASSERT(ip->i_uid == dqp->dq_uid); in getinoquota() 110 if (dqp->dq_fhardlimit == 0 && dqp->dq_fsoftlimit == 0 && in getinoquota() 111 dqp->dq_bhardlimit == 0 && dqp->dq_bsoftlimit == 0) { in getinoquota() 112 dqput(dqp); in getinoquota() 113 mutex_exit(&dqp->dq_lock); in getinoquota() 114 dqp = NULL; in getinoquota() 116 mutex_exit(&dqp->dq_lock); in getinoquota() [all …]
|
H A D | quotacalls.c | 201 struct dquot *dqp; in opendq() local 287 error = getdiskquota((uid_t)0, ufsvfsp, 1, &dqp); in opendq() 289 mutex_enter(&dqp->dq_lock); in opendq() 291 (dqp->dq_btimelimit? dqp->dq_btimelimit: DQ_BTIMELIMIT); in opendq() 293 (dqp->dq_ftimelimit? dqp->dq_ftimelimit: DQ_FTIMELIMIT); in opendq() 297 dqput(dqp); in opendq() 298 mutex_exit(&dqp->dq_lock); in opendq() 324 struct dquot *dqp; in closedq_scan_inode() local 340 if ((dqp = ip->i_dquot) != NULL) { in closedq_scan_inode() 344 mutex_enter(&dqp->dq_lock); in closedq_scan_inode() [all …]
|
H A D | ufs_trans.c | 508 ufs_trans_push_quota(ufsvfs_t *ufsvfsp, delta_t dtyp, struct dquot *dqp) in ufs_trans_push_quota() argument 516 mutex_enter(&dqp->dq_lock); in ufs_trans_push_quota() 523 if ((dqp->dq_flags & DQ_TRANS) == 0) { in ufs_trans_push_quota() 524 mutex_exit(&dqp->dq_lock); in ufs_trans_push_quota() 530 if (dqp->dq_flags & DQ_ERROR) { in ufs_trans_push_quota() 537 ASSERT(dqp->dq_cnt >= 1); in ufs_trans_push_quota() 538 dqp->dq_flags &= ~DQ_TRANS; in ufs_trans_push_quota() 539 dqput(dqp); in ufs_trans_push_quota() 540 mutex_exit(&dqp->dq_lock); in ufs_trans_push_quota() 546 if (dqp->dq_flags & (DQ_MOD | DQ_BLKS | DQ_FILES)) { in ufs_trans_push_quota() [all …]
|
H A D | lufs_map.c | 1986 struct dquot *dqp; in handle_dquot() local 1988 dqp = (struct dquot *)me->me_arg; in handle_dquot() 1993 dolock = (!RW_LOCK_HELD(&dqp->dq_ufsvfsp->vfs_dqrwlock)); in handle_dquot() 1995 rw_enter(&dqp->dq_ufsvfsp->vfs_dqrwlock, RW_READER); in handle_dquot() 1997 domutex = (!MUTEX_HELD(&dqp->dq_lock)); in handle_dquot() 1999 mutex_enter(&dqp->dq_lock); in handle_dquot() 2004 if (dqp->dq_cnt == 0) { in handle_dquot() 2006 mutex_exit(&dqp->dq_lock); in handle_dquot() 2008 rw_exit(&dqp->dq_ufsvfsp->vfs_dqrwlock); in handle_dquot() 2012 dqp->dq_flags &= ~(DQ_MOD|DQ_TRANS); in handle_dquot() [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/quota/ |
H A D | quota.c | 438 warn(struct mnttab *mntp, struct dqblk *dqp) in warn() argument 444 if (dqp->dqb_bhardlimit && in warn() 445 dqp->dqb_curblocks >= dqp->dqb_bhardlimit) { in warn() 447 } else if (dqp->dqb_bsoftlimit && in warn() 448 dqp->dqb_curblocks >= dqp->dqb_bsoftlimit) { in warn() 449 if (dqp->dqb_btimelimit == 0) { in warn() 452 kb(dqp->dqb_curblocks - dqp->dqb_bsoftlimit + 1)); in warn() 453 } else if (dqp->dqb_btimelimit > tv.tv_sec) { in warn() 456 fmttime(btimeleft, dqp->dqb_btimelimit - tv.tv_sec); in warn() 459 kb(dqp->dqb_curblocks - dqp->dqb_bsoftlimit + 1), in warn() [all …]
|
/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_dispq.c | 98 fmd_dispq_t *dqp = fmd_alloc(sizeof (fmd_dispq_t), FMD_SLEEP); in fmd_dispq_create() local 100 (void) pthread_rwlock_init(&dqp->dq_lock, NULL); in fmd_dispq_create() 101 dqp->dq_root = fmd_dispqelem_create(NULL); in fmd_dispq_create() 102 dqp->dq_gids = fmd_idspace_create("dispq_gids", 1, INT_MAX); in fmd_dispq_create() 103 dqp->dq_gmax = 0; in fmd_dispq_create() 105 return (dqp); in fmd_dispq_create() 109 fmd_dispq_destroy(fmd_dispq_t *dqp) in fmd_dispq_destroy() argument 111 fmd_dispqelem_destroy(dqp->dq_root); in fmd_dispq_destroy() 112 fmd_idspace_destroy(dqp->dq_gids); in fmd_dispq_destroy() 113 fmd_free(dqp, sizeof (fmd_dispq_t)); in fmd_dispq_destroy() [all …]
|
/titanic_44/usr/src/cmd/fs.d/ufs/repquota/ |
H A D | repquota.c | 287 prquota(uid_t uid, struct dqblk *dqp) in prquota() argument 293 if (dqp->dqb_bsoftlimit == 0 && dqp->dqb_bhardlimit == 0 && in prquota() 294 dqp->dqb_fsoftlimit == 0 && dqp->dqb_fhardlimit == 0) in prquota() 303 if (dqp->dqb_bsoftlimit && in prquota() 304 dqp->dqb_curblocks >= dqp->dqb_bsoftlimit) { in prquota() 305 if (dqp->dqb_btimelimit == 0) in prquota() 307 else if (dqp->dqb_btimelimit > tv.tv_sec) in prquota() 309 (long)(dqp->dqb_btimelimit - tv.tv_sec)); in prquota() 315 if (dqp->dqb_fsoftlimit && dqp->dqb_curfiles >= dqp->dqb_fsoftlimit) { in prquota() 316 if (dqp->dqb_ftimelimit == 0) in prquota() [all …]
|
/titanic_44/usr/src/cmd/fs.d/nfs/rquotad/ |
H A D | rpc.rquotad.c | 409 quotactl(cmd, mountp, uid, dqp) in quotactl() argument 413 struct dqblk *dqp; 465 quota.addr = (caddr_t)dqp; 616 getdiskquota(fsqp, uid, dqp) in getdiskquota() argument 619 struct dqblk *dqp; 628 if (read(fd, dqp, sizeof (struct dqblk)) != sizeof (struct dqblk)) { 633 if (dqp->dqb_bhardlimit == 0 && dqp->dqb_bsoftlimit == 0 && 634 dqp->dqb_fhardlimit == 0 && dqp->dqb_fsoftlimit == 0) {
|
/titanic_44/usr/src/uts/common/sys/fs/ |
H A D | ufs_trans.h | 318 #define TRANS_QUOTA(dqp) \ argument 319 if (TRANS_ISTRANS(dqp->dq_ufsvfsp)) \ 320 ufs_trans_quota(dqp); 322 #define TRANS_DQRELE(ufsvfsp, dqp) \ argument 325 ufs_trans_dqrele(dqp); \ 328 dqrele(dqp); \
|
/titanic_44/usr/src/cmd/mdb/common/modules/rdc/ |
H A D | rdc.c | 670 disk_queue *dqp = NULL; in rdc_uinfo() local 731 dqp = &grp.diskq; in rdc_uinfo() 762 if (dqp) { in rdc_uinfo() 763 if (IS_QSTATE(dqp, RDC_QNOBLOCK)) in rdc_uinfo() 802 if (dqp) { in rdc_uinfo() 803 mdb_printf("diskqsize: %d\n", QSIZE(dqp)); in rdc_uinfo()
|
/titanic_44/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc.c | 580 disk_queue *dqp; in rdcstatus() local 636 dqp = &krdc->group->diskq; in rdcstatus() 637 if (IS_QSTATE(dqp, RDC_QNOBLOCK)) in rdcstatus()
|
H A D | rdc_io.c | 5648 disk_queue *dqp; in rdc_status() local 5695 dqp = &krdc->group->diskq; in rdc_status() 5696 if (IS_QSTATE(dqp, RDC_QNOBLOCK)) in rdc_status()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNS.c | 4914 DNSQuestion **dqp = &DupQuestions; in ProcessQuery() local 5025 if (q->NextInDQList == mDNSNULL && dqp != &q->NextInDQList) in ProcessQuery() 5029 { *dqp = q; dqp = &q->NextInDQList; } in ProcessQuery() 5110 dqp = &DupQuestions; in ProcessQuery() 5111 while (*dqp) in ProcessQuery() 5113 DNSQuestion *q = *dqp; in ProcessQuery() 5115 { *dqp = q->NextInDQList; q->NextInDQList = mDNSNULL; } in ProcessQuery() 5116 else dqp = &q->NextInDQList; in ProcessQuery()
|