Lines Matching full:warn

1189 static int need_print_warning(struct dquot_warn *warn)  in need_print_warning()  argument
1194 switch (warn->w_dq_id.type) { in need_print_warning()
1196 return uid_eq(current_fsuid(), warn->w_dq_id.uid); in need_print_warning()
1198 return in_group_p(warn->w_dq_id.gid); in need_print_warning()
1206 static void print_warning(struct dquot_warn *warn) in print_warning() argument
1210 int warntype = warn->w_type; in print_warning()
1215 warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(warn)) in print_warning()
1221 tty_write_message(tty, warn->w_sb->s_id); in print_warning()
1226 tty_write_message(tty, quotatypes[warn->w_dq_id.type]); in print_warning()
1252 static void prepare_warning(struct dquot_warn *warn, struct dquot *dquot, in prepare_warning() argument
1257 warn->w_type = warntype; in prepare_warning()
1258 warn->w_sb = dquot->dq_sb; in prepare_warning()
1259 warn->w_dq_id = dquot->dq_id; in prepare_warning()
1267 static void flush_warnings(struct dquot_warn *warn) in flush_warnings() argument
1272 if (warn[i].w_type == QUOTA_NL_NOWARN) in flush_warnings()
1275 print_warning(&warn[i]); in flush_warnings()
1277 quota_send_warning(warn[i].w_dq_id, in flush_warnings()
1278 warn[i].w_sb->s_dev, warn[i].w_type); in flush_warnings()
1292 struct dquot_warn *warn) in dquot_add_inodes() argument
1306 prepare_warning(warn, dquot, QUOTA_NL_IHARDWARN); in dquot_add_inodes()
1316 prepare_warning(warn, dquot, QUOTA_NL_ISOFTLONGWARN); in dquot_add_inodes()
1324 prepare_warning(warn, dquot, QUOTA_NL_ISOFTWARN); in dquot_add_inodes()
1338 struct dquot_warn *warn) in dquot_add_space() argument
1356 prepare_warning(warn, dquot, QUOTA_NL_BHARDWARN); in dquot_add_space()
1367 prepare_warning(warn, dquot, QUOTA_NL_BSOFTLONGWARN); in dquot_add_space()
1376 prepare_warning(warn, dquot, QUOTA_NL_BSOFTWARN); in dquot_add_space()
1684 struct dquot_warn warn[MAXQUOTAS]; in __dquot_alloc_space() local
1701 warn[cnt].w_type = QUOTA_NL_NOWARN; in __dquot_alloc_space()
1711 ret = dquot_add_space(dquot, 0, number, flags, &warn[cnt]); in __dquot_alloc_space()
1713 ret = dquot_add_space(dquot, number, 0, flags, &warn[cnt]); in __dquot_alloc_space()
1743 flush_warnings(warn); in __dquot_alloc_space()
1755 struct dquot_warn warn[MAXQUOTAS]; in dquot_alloc_inode() local
1762 warn[cnt].w_type = QUOTA_NL_NOWARN; in dquot_alloc_inode()
1771 ret = dquot_add_inodes(dquot, 1, &warn[cnt]); in dquot_alloc_inode()
1791 flush_warnings(warn); in dquot_alloc_inode()
1884 struct dquot_warn warn[MAXQUOTAS]; in __dquot_free_space() local
1906 warn[cnt].w_type = QUOTA_NL_NOWARN; in __dquot_free_space()
1913 prepare_warning(&warn[cnt], dquot, wtype); in __dquot_free_space()
1931 flush_warnings(warn); in __dquot_free_space()
1941 struct dquot_warn warn[MAXQUOTAS]; in dquot_free_inode() local
1954 warn[cnt].w_type = QUOTA_NL_NOWARN; in dquot_free_inode()
1961 prepare_warning(&warn[cnt], dquot, wtype); in dquot_free_inode()
1968 flush_warnings(warn); in dquot_free_inode()