Lines Matching refs:warn

1221 static int need_print_warning(struct dquot_warn *warn)  in need_print_warning()  argument
1226 switch (warn->w_dq_id.type) { in need_print_warning()
1228 return uid_eq(current_fsuid(), warn->w_dq_id.uid); in need_print_warning()
1230 return in_group_p(warn->w_dq_id.gid); in need_print_warning()
1238 static void print_warning(struct dquot_warn *warn) in print_warning() argument
1242 int warntype = warn->w_type; in print_warning()
1247 warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(warn)) in print_warning()
1253 tty_write_message(tty, warn->w_sb->s_id); in print_warning()
1258 tty_write_message(tty, quotatypes[warn->w_dq_id.type]); in print_warning()
1284 static void prepare_warning(struct dquot_warn *warn, struct dquot *dquot, in prepare_warning() argument
1289 warn->w_type = warntype; in prepare_warning()
1290 warn->w_sb = dquot->dq_sb; in prepare_warning()
1291 warn->w_dq_id = dquot->dq_id; in prepare_warning()
1299 static void flush_warnings(struct dquot_warn *warn) in flush_warnings() argument
1304 if (warn[i].w_type == QUOTA_NL_NOWARN) in flush_warnings()
1307 print_warning(&warn[i]); in flush_warnings()
1309 quota_send_warning(warn[i].w_dq_id, in flush_warnings()
1310 warn[i].w_sb->s_dev, warn[i].w_type); in flush_warnings()
1324 struct dquot_warn *warn) in dquot_add_inodes() argument
1338 prepare_warning(warn, dquot, QUOTA_NL_IHARDWARN); in dquot_add_inodes()
1348 prepare_warning(warn, dquot, QUOTA_NL_ISOFTLONGWARN); in dquot_add_inodes()
1356 prepare_warning(warn, dquot, QUOTA_NL_ISOFTWARN); in dquot_add_inodes()
1370 struct dquot_warn *warn) in dquot_add_space() argument
1388 prepare_warning(warn, dquot, QUOTA_NL_BHARDWARN); in dquot_add_space()
1399 prepare_warning(warn, dquot, QUOTA_NL_BSOFTLONGWARN); in dquot_add_space()
1408 prepare_warning(warn, dquot, QUOTA_NL_BSOFTWARN); in dquot_add_space()
1710 struct dquot_warn warn[MAXQUOTAS]; in __dquot_alloc_space() local
1726 warn[cnt].w_type = QUOTA_NL_NOWARN; in __dquot_alloc_space()
1736 &warn[cnt]); in __dquot_alloc_space()
1739 &warn[cnt]); in __dquot_alloc_space()
1771 flush_warnings(warn); in __dquot_alloc_space()
1783 struct dquot_warn warn[MAXQUOTAS]; in dquot_alloc_inode() local
1789 warn[cnt].w_type = QUOTA_NL_NOWARN; in dquot_alloc_inode()
1797 ret = dquot_add_inodes(dquots[cnt], 1, &warn[cnt]); in dquot_alloc_inode()
1816 flush_warnings(warn); in dquot_alloc_inode()
1911 struct dquot_warn warn[MAXQUOTAS]; in __dquot_free_space() local
1932 warn[cnt].w_type = QUOTA_NL_NOWARN; in __dquot_free_space()
1938 prepare_warning(&warn[cnt], dquots[cnt], wtype); in __dquot_free_space()
1956 flush_warnings(warn); in __dquot_free_space()
1966 struct dquot_warn warn[MAXQUOTAS]; in dquot_free_inode() local
1979 warn[cnt].w_type = QUOTA_NL_NOWARN; in dquot_free_inode()
1985 prepare_warning(&warn[cnt], dquots[cnt], wtype); in dquot_free_inode()
1992 flush_warnings(warn); in dquot_free_inode()