• Home
  • Raw
  • Download

Lines Matching refs:dst

189 static void copy_to_if_dqblk(struct if_dqblk *dst, struct qc_dqblk *src)  in copy_to_if_dqblk()  argument
191 memset(dst, 0, sizeof(*dst)); in copy_to_if_dqblk()
192 dst->dqb_bhardlimit = stoqb(src->d_spc_hardlimit); in copy_to_if_dqblk()
193 dst->dqb_bsoftlimit = stoqb(src->d_spc_softlimit); in copy_to_if_dqblk()
194 dst->dqb_curspace = src->d_space; in copy_to_if_dqblk()
195 dst->dqb_ihardlimit = src->d_ino_hardlimit; in copy_to_if_dqblk()
196 dst->dqb_isoftlimit = src->d_ino_softlimit; in copy_to_if_dqblk()
197 dst->dqb_curinodes = src->d_ino_count; in copy_to_if_dqblk()
198 dst->dqb_btime = src->d_spc_timer; in copy_to_if_dqblk()
199 dst->dqb_itime = src->d_ino_timer; in copy_to_if_dqblk()
200 dst->dqb_valid = QIF_ALL; in copy_to_if_dqblk()
253 static void copy_from_if_dqblk(struct qc_dqblk *dst, struct if_dqblk *src) in copy_from_if_dqblk() argument
255 dst->d_spc_hardlimit = qbtos(src->dqb_bhardlimit); in copy_from_if_dqblk()
256 dst->d_spc_softlimit = qbtos(src->dqb_bsoftlimit); in copy_from_if_dqblk()
257 dst->d_space = src->dqb_curspace; in copy_from_if_dqblk()
258 dst->d_ino_hardlimit = src->dqb_ihardlimit; in copy_from_if_dqblk()
259 dst->d_ino_softlimit = src->dqb_isoftlimit; in copy_from_if_dqblk()
260 dst->d_ino_count = src->dqb_curinodes; in copy_from_if_dqblk()
261 dst->d_spc_timer = src->dqb_btime; in copy_from_if_dqblk()
262 dst->d_ino_timer = src->dqb_itime; in copy_from_if_dqblk()
264 dst->d_fieldmask = 0; in copy_from_if_dqblk()
266 dst->d_fieldmask |= QC_SPC_SOFT | QC_SPC_HARD; in copy_from_if_dqblk()
268 dst->d_fieldmask |= QC_SPACE; in copy_from_if_dqblk()
270 dst->d_fieldmask |= QC_INO_SOFT | QC_INO_HARD; in copy_from_if_dqblk()
272 dst->d_fieldmask |= QC_INO_COUNT; in copy_from_if_dqblk()
274 dst->d_fieldmask |= QC_SPC_TIMER; in copy_from_if_dqblk()
276 dst->d_fieldmask |= QC_INO_TIMER; in copy_from_if_dqblk()
504 static void copy_from_xfs_dqblk(struct qc_dqblk *dst, struct fs_disk_quota *src) in copy_from_xfs_dqblk() argument
506 dst->d_spc_hardlimit = quota_bbtob(src->d_blk_hardlimit); in copy_from_xfs_dqblk()
507 dst->d_spc_softlimit = quota_bbtob(src->d_blk_softlimit); in copy_from_xfs_dqblk()
508 dst->d_ino_hardlimit = src->d_ino_hardlimit; in copy_from_xfs_dqblk()
509 dst->d_ino_softlimit = src->d_ino_softlimit; in copy_from_xfs_dqblk()
510 dst->d_space = quota_bbtob(src->d_bcount); in copy_from_xfs_dqblk()
511 dst->d_ino_count = src->d_icount; in copy_from_xfs_dqblk()
512 dst->d_ino_timer = src->d_itimer; in copy_from_xfs_dqblk()
513 dst->d_spc_timer = src->d_btimer; in copy_from_xfs_dqblk()
514 dst->d_ino_warns = src->d_iwarns; in copy_from_xfs_dqblk()
515 dst->d_spc_warns = src->d_bwarns; in copy_from_xfs_dqblk()
516 dst->d_rt_spc_hardlimit = quota_bbtob(src->d_rtb_hardlimit); in copy_from_xfs_dqblk()
517 dst->d_rt_spc_softlimit = quota_bbtob(src->d_rtb_softlimit); in copy_from_xfs_dqblk()
518 dst->d_rt_space = quota_bbtob(src->d_rtbcount); in copy_from_xfs_dqblk()
519 dst->d_rt_spc_timer = src->d_rtbtimer; in copy_from_xfs_dqblk()
520 dst->d_rt_spc_warns = src->d_rtbwarns; in copy_from_xfs_dqblk()
521 dst->d_fieldmask = 0; in copy_from_xfs_dqblk()
523 dst->d_fieldmask |= QC_INO_SOFT; in copy_from_xfs_dqblk()
525 dst->d_fieldmask |= QC_INO_HARD; in copy_from_xfs_dqblk()
527 dst->d_fieldmask |= QC_SPC_SOFT; in copy_from_xfs_dqblk()
529 dst->d_fieldmask |= QC_SPC_HARD; in copy_from_xfs_dqblk()
531 dst->d_fieldmask |= QC_RT_SPC_SOFT; in copy_from_xfs_dqblk()
533 dst->d_fieldmask |= QC_RT_SPC_HARD; in copy_from_xfs_dqblk()
535 dst->d_fieldmask |= QC_SPC_TIMER; in copy_from_xfs_dqblk()
537 dst->d_fieldmask |= QC_INO_TIMER; in copy_from_xfs_dqblk()
539 dst->d_fieldmask |= QC_RT_SPC_TIMER; in copy_from_xfs_dqblk()
541 dst->d_fieldmask |= QC_SPC_WARNS; in copy_from_xfs_dqblk()
543 dst->d_fieldmask |= QC_INO_WARNS; in copy_from_xfs_dqblk()
545 dst->d_fieldmask |= QC_RT_SPC_WARNS; in copy_from_xfs_dqblk()
547 dst->d_fieldmask |= QC_SPACE; in copy_from_xfs_dqblk()
549 dst->d_fieldmask |= QC_INO_COUNT; in copy_from_xfs_dqblk()
551 dst->d_fieldmask |= QC_RT_SPACE; in copy_from_xfs_dqblk()
554 static void copy_qcinfo_from_xfs_dqblk(struct qc_info *dst, in copy_qcinfo_from_xfs_dqblk() argument
557 memset(dst, 0, sizeof(*dst)); in copy_qcinfo_from_xfs_dqblk()
558 dst->i_spc_timelimit = src->d_btimer; in copy_qcinfo_from_xfs_dqblk()
559 dst->i_ino_timelimit = src->d_itimer; in copy_qcinfo_from_xfs_dqblk()
560 dst->i_rt_spc_timelimit = src->d_rtbtimer; in copy_qcinfo_from_xfs_dqblk()
561 dst->i_ino_warnlimit = src->d_iwarns; in copy_qcinfo_from_xfs_dqblk()
562 dst->i_spc_warnlimit = src->d_bwarns; in copy_qcinfo_from_xfs_dqblk()
563 dst->i_rt_spc_warnlimit = src->d_rtbwarns; in copy_qcinfo_from_xfs_dqblk()
565 dst->i_fieldmask |= QC_SPC_WARNS; in copy_qcinfo_from_xfs_dqblk()
567 dst->i_fieldmask |= QC_INO_WARNS; in copy_qcinfo_from_xfs_dqblk()
569 dst->i_fieldmask |= QC_RT_SPC_WARNS; in copy_qcinfo_from_xfs_dqblk()
571 dst->i_fieldmask |= QC_SPC_TIMER; in copy_qcinfo_from_xfs_dqblk()
573 dst->i_fieldmask |= QC_INO_TIMER; in copy_qcinfo_from_xfs_dqblk()
575 dst->i_fieldmask |= QC_RT_SPC_TIMER; in copy_qcinfo_from_xfs_dqblk()
611 static void copy_to_xfs_dqblk(struct fs_disk_quota *dst, struct qc_dqblk *src, in copy_to_xfs_dqblk() argument
614 memset(dst, 0, sizeof(*dst)); in copy_to_xfs_dqblk()
615 dst->d_version = FS_DQUOT_VERSION; in copy_to_xfs_dqblk()
616 dst->d_id = id; in copy_to_xfs_dqblk()
618 dst->d_flags = FS_USER_QUOTA; in copy_to_xfs_dqblk()
620 dst->d_flags = FS_PROJ_QUOTA; in copy_to_xfs_dqblk()
622 dst->d_flags = FS_GROUP_QUOTA; in copy_to_xfs_dqblk()
623 dst->d_blk_hardlimit = quota_btobb(src->d_spc_hardlimit); in copy_to_xfs_dqblk()
624 dst->d_blk_softlimit = quota_btobb(src->d_spc_softlimit); in copy_to_xfs_dqblk()
625 dst->d_ino_hardlimit = src->d_ino_hardlimit; in copy_to_xfs_dqblk()
626 dst->d_ino_softlimit = src->d_ino_softlimit; in copy_to_xfs_dqblk()
627 dst->d_bcount = quota_btobb(src->d_space); in copy_to_xfs_dqblk()
628 dst->d_icount = src->d_ino_count; in copy_to_xfs_dqblk()
629 dst->d_itimer = src->d_ino_timer; in copy_to_xfs_dqblk()
630 dst->d_btimer = src->d_spc_timer; in copy_to_xfs_dqblk()
631 dst->d_iwarns = src->d_ino_warns; in copy_to_xfs_dqblk()
632 dst->d_bwarns = src->d_spc_warns; in copy_to_xfs_dqblk()
633 dst->d_rtb_hardlimit = quota_btobb(src->d_rt_spc_hardlimit); in copy_to_xfs_dqblk()
634 dst->d_rtb_softlimit = quota_btobb(src->d_rt_spc_softlimit); in copy_to_xfs_dqblk()
635 dst->d_rtbcount = quota_btobb(src->d_rt_space); in copy_to_xfs_dqblk()
636 dst->d_rtbtimer = src->d_rt_spc_timer; in copy_to_xfs_dqblk()
637 dst->d_rtbwarns = src->d_rt_spc_warns; in copy_to_xfs_dqblk()