Lines Matching refs:dq_dqb
1104 if (dquot->dq_dqb.dqb_rsvspace >= number) in dquot_free_reserved_space()
1105 dquot->dq_dqb.dqb_rsvspace -= number; in dquot_free_reserved_space()
1108 dquot->dq_dqb.dqb_rsvspace = 0; in dquot_free_reserved_space()
1110 if (dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace <= in dquot_free_reserved_space()
1111 dquot->dq_dqb.dqb_bsoftlimit) in dquot_free_reserved_space()
1112 dquot->dq_dqb.dqb_btime = (time64_t) 0; in dquot_free_reserved_space()
1119 dquot->dq_dqb.dqb_curinodes >= number) in dquot_decr_inodes()
1120 dquot->dq_dqb.dqb_curinodes -= number; in dquot_decr_inodes()
1122 dquot->dq_dqb.dqb_curinodes = 0; in dquot_decr_inodes()
1123 if (dquot->dq_dqb.dqb_curinodes <= dquot->dq_dqb.dqb_isoftlimit) in dquot_decr_inodes()
1124 dquot->dq_dqb.dqb_itime = (time64_t) 0; in dquot_decr_inodes()
1131 dquot->dq_dqb.dqb_curspace >= number) in dquot_decr_space()
1132 dquot->dq_dqb.dqb_curspace -= number; in dquot_decr_space()
1134 dquot->dq_dqb.dqb_curspace = 0; in dquot_decr_space()
1135 if (dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace <= in dquot_decr_space()
1136 dquot->dq_dqb.dqb_bsoftlimit) in dquot_decr_space()
1137 dquot->dq_dqb.dqb_btime = (time64_t) 0; in dquot_decr_space()
1271 newinodes = dquot->dq_dqb.dqb_curinodes + inodes; in dquot_add_inodes()
1276 if (dquot->dq_dqb.dqb_ihardlimit && in dquot_add_inodes()
1277 newinodes > dquot->dq_dqb.dqb_ihardlimit && in dquot_add_inodes()
1284 if (dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1285 newinodes > dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1286 dquot->dq_dqb.dqb_itime && in dquot_add_inodes()
1287 ktime_get_real_seconds() >= dquot->dq_dqb.dqb_itime && in dquot_add_inodes()
1294 if (dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1295 newinodes > dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1296 dquot->dq_dqb.dqb_itime == 0) { in dquot_add_inodes()
1298 dquot->dq_dqb.dqb_itime = ktime_get_real_seconds() + in dquot_add_inodes()
1302 dquot->dq_dqb.dqb_curinodes = newinodes; in dquot_add_inodes()
1322 tspace = dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace in dquot_add_space()
1325 if (dquot->dq_dqb.dqb_bhardlimit && in dquot_add_space()
1326 tspace > dquot->dq_dqb.dqb_bhardlimit && in dquot_add_space()
1334 if (dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1335 tspace > dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1336 dquot->dq_dqb.dqb_btime && in dquot_add_space()
1337 ktime_get_real_seconds() >= dquot->dq_dqb.dqb_btime && in dquot_add_space()
1345 if (dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1346 tspace > dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1347 dquot->dq_dqb.dqb_btime == 0) { in dquot_add_space()
1350 dquot->dq_dqb.dqb_btime = ktime_get_real_seconds() + in dquot_add_space()
1370 dquot->dq_dqb.dqb_rsvspace += rsv_space; in dquot_add_space()
1371 dquot->dq_dqb.dqb_curspace += space; in dquot_add_space()
1382 dquot->dq_dqb.dqb_curinodes <= dquot->dq_dqb.dqb_isoftlimit || in info_idq_free()
1386 newinodes = dquot->dq_dqb.dqb_curinodes - inodes; in info_idq_free()
1387 if (newinodes <= dquot->dq_dqb.dqb_isoftlimit) in info_idq_free()
1389 if (dquot->dq_dqb.dqb_curinodes >= dquot->dq_dqb.dqb_ihardlimit && in info_idq_free()
1390 newinodes < dquot->dq_dqb.dqb_ihardlimit) in info_idq_free()
1399 tspace = dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace; in info_bdq_free()
1402 tspace <= dquot->dq_dqb.dqb_bsoftlimit) in info_bdq_free()
1405 if (tspace - space <= dquot->dq_dqb.dqb_bsoftlimit) in info_bdq_free()
1407 if (tspace >= dquot->dq_dqb.dqb_bhardlimit && in info_bdq_free()
1408 tspace - space < dquot->dq_dqb.dqb_bhardlimit) in info_bdq_free()
1518 dquots[cnt]->dq_dqb.dqb_rsvspace += rsv; in __dquot_initialize()
1785 if (WARN_ON_ONCE(dquot->dq_dqb.dqb_rsvspace < number)) in dquot_claim_space_nodirty()
1786 number = dquot->dq_dqb.dqb_rsvspace; in dquot_claim_space_nodirty()
1787 dquot->dq_dqb.dqb_curspace += number; in dquot_claim_space_nodirty()
1788 dquot->dq_dqb.dqb_rsvspace -= number; in dquot_claim_space_nodirty()
1827 if (WARN_ON_ONCE(dquot->dq_dqb.dqb_curspace < number)) in dquot_reclaim_space_nodirty()
1828 number = dquot->dq_dqb.dqb_curspace; in dquot_reclaim_space_nodirty()
1829 dquot->dq_dqb.dqb_rsvspace += number; in dquot_reclaim_space_nodirty()
1830 dquot->dq_dqb.dqb_curspace -= number; in dquot_reclaim_space_nodirty()
2593 struct mem_dqblk *dm = &dquot->dq_dqb; in do_get_dqblk()
2652 struct mem_dqblk *dm = &dquot->dq_dqb; in do_set_dqblk()