• Home
  • Raw
  • Download

Lines Matching refs:di

2693 static void do_get_dqblk(struct dquot *dquot, struct qc_dqblk *di)  in do_get_dqblk()  argument
2697 memset(di, 0, sizeof(*di)); in do_get_dqblk()
2699 di->d_spc_hardlimit = dm->dqb_bhardlimit; in do_get_dqblk()
2700 di->d_spc_softlimit = dm->dqb_bsoftlimit; in do_get_dqblk()
2701 di->d_ino_hardlimit = dm->dqb_ihardlimit; in do_get_dqblk()
2702 di->d_ino_softlimit = dm->dqb_isoftlimit; in do_get_dqblk()
2703 di->d_space = dm->dqb_curspace + dm->dqb_rsvspace; in do_get_dqblk()
2704 di->d_ino_count = dm->dqb_curinodes; in do_get_dqblk()
2705 di->d_spc_timer = dm->dqb_btime; in do_get_dqblk()
2706 di->d_ino_timer = dm->dqb_itime; in do_get_dqblk()
2711 struct qc_dqblk *di) in dquot_get_dqblk() argument
2718 do_get_dqblk(dquot, di); in dquot_get_dqblk()
2726 struct qc_dqblk *di) in dquot_get_next_dqblk() argument
2739 do_get_dqblk(dquot, di); in dquot_get_next_dqblk()
2752 static int do_set_dqblk(struct dquot *dquot, struct qc_dqblk *di) in do_set_dqblk() argument
2758 if (di->d_fieldmask & ~VFS_QC_MASK) in do_set_dqblk()
2761 if (((di->d_fieldmask & QC_SPC_SOFT) && in do_set_dqblk()
2762 di->d_spc_softlimit > dqi->dqi_max_spc_limit) || in do_set_dqblk()
2763 ((di->d_fieldmask & QC_SPC_HARD) && in do_set_dqblk()
2764 di->d_spc_hardlimit > dqi->dqi_max_spc_limit) || in do_set_dqblk()
2765 ((di->d_fieldmask & QC_INO_SOFT) && in do_set_dqblk()
2766 (di->d_ino_softlimit > dqi->dqi_max_ino_limit)) || in do_set_dqblk()
2767 ((di->d_fieldmask & QC_INO_HARD) && in do_set_dqblk()
2768 (di->d_ino_hardlimit > dqi->dqi_max_ino_limit))) in do_set_dqblk()
2772 if (di->d_fieldmask & QC_SPACE) { in do_set_dqblk()
2773 dm->dqb_curspace = di->d_space - dm->dqb_rsvspace; in do_set_dqblk()
2778 if (di->d_fieldmask & QC_SPC_SOFT) in do_set_dqblk()
2779 dm->dqb_bsoftlimit = di->d_spc_softlimit; in do_set_dqblk()
2780 if (di->d_fieldmask & QC_SPC_HARD) in do_set_dqblk()
2781 dm->dqb_bhardlimit = di->d_spc_hardlimit; in do_set_dqblk()
2782 if (di->d_fieldmask & (QC_SPC_SOFT | QC_SPC_HARD)) { in do_set_dqblk()
2787 if (di->d_fieldmask & QC_INO_COUNT) { in do_set_dqblk()
2788 dm->dqb_curinodes = di->d_ino_count; in do_set_dqblk()
2793 if (di->d_fieldmask & QC_INO_SOFT) in do_set_dqblk()
2794 dm->dqb_isoftlimit = di->d_ino_softlimit; in do_set_dqblk()
2795 if (di->d_fieldmask & QC_INO_HARD) in do_set_dqblk()
2796 dm->dqb_ihardlimit = di->d_ino_hardlimit; in do_set_dqblk()
2797 if (di->d_fieldmask & (QC_INO_SOFT | QC_INO_HARD)) { in do_set_dqblk()
2802 if (di->d_fieldmask & QC_SPC_TIMER) { in do_set_dqblk()
2803 dm->dqb_btime = di->d_spc_timer; in do_set_dqblk()
2808 if (di->d_fieldmask & QC_INO_TIMER) { in do_set_dqblk()
2809 dm->dqb_itime = di->d_ino_timer; in do_set_dqblk()
2819 } else if (!(di->d_fieldmask & QC_SPC_TIMER)) in do_set_dqblk()
2828 } else if (!(di->d_fieldmask & QC_INO_TIMER)) in do_set_dqblk()
2844 struct qc_dqblk *di) in dquot_set_dqblk() argument
2854 rc = do_set_dqblk(dquot, di); in dquot_set_dqblk()