Lines Matching refs:warntype
823 static void print_warning(struct dquot *dquot, const char warntype) in print_warning() argument
826 int flag = (warntype == BHARDWARN || warntype == BSOFTLONGWARN) ? DQ_BLKS : in print_warning()
827 ((warntype == IHARDWARN || warntype == ISOFTLONGWARN) ? DQ_INODES : 0); in print_warning()
833 if (warntype == ISOFTWARN || warntype == BSOFTWARN) in print_warning()
838 switch (warntype) { in print_warning()
861 static inline void flush_warnings(struct dquot **dquots, char *warntype) in flush_warnings() argument
866 if (dquots[i] != NODQUOT && warntype[i] != NOWARN) in flush_warnings()
867 print_warning(dquots[i], warntype[i]); in flush_warnings()
878 static int check_idq(struct dquot *dquot, ulong inodes, char *warntype) in check_idq() argument
880 *warntype = NOWARN; in check_idq()
887 *warntype = IHARDWARN; in check_idq()
895 *warntype = ISOFTLONGWARN; in check_idq()
902 *warntype = ISOFTWARN; in check_idq()
909 static int check_bdq(struct dquot *dquot, qsize_t space, int prealloc, char *warntype) in check_bdq() argument
911 *warntype = 0; in check_bdq()
919 *warntype = BHARDWARN; in check_bdq()
928 *warntype = BSOFTLONGWARN; in check_bdq()
936 *warntype = BSOFTWARN; in check_bdq()
1024 char warntype[MAXQUOTAS]; in dquot_alloc_space() local
1028 warntype[cnt] = NOWARN; in dquot_alloc_space()
1035 if (check_bdq(dquot[cnt], number, warn, warntype+cnt) == NO_QUOTA) in dquot_alloc_space()
1047 flush_warnings(dquot, warntype); in dquot_alloc_space()
1061 char warntype[MAXQUOTAS]; in dquot_alloc_inode() local
1065 warntype[cnt] = NOWARN; in dquot_alloc_inode()
1072 if (check_idq(dquot[cnt], number, warntype+cnt) == NO_QUOTA) in dquot_alloc_inode()
1084 flush_warnings(dquot, warntype); in dquot_alloc_inode()
1142 char warntype[MAXQUOTAS]; in dquot_transfer() local
1147 warntype[cnt] = NOWARN; in dquot_transfer()
1176 if (check_idq(transfer_to[cnt], 1, warntype+cnt) == NO_QUOTA || in dquot_transfer()
1177 check_bdq(transfer_to[cnt], space, 0, warntype+cnt) == NO_QUOTA) in dquot_transfer()
1209 flush_warnings(transfer_to, warntype); in dquot_transfer()