Lines Matching refs:dq_dqb

1137 	if (dquot->dq_dqb.dqb_rsvspace >= number)  in dquot_free_reserved_space()
1138 dquot->dq_dqb.dqb_rsvspace -= number; in dquot_free_reserved_space()
1141 dquot->dq_dqb.dqb_rsvspace = 0; in dquot_free_reserved_space()
1143 if (dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace <= in dquot_free_reserved_space()
1144 dquot->dq_dqb.dqb_bsoftlimit) in dquot_free_reserved_space()
1145 dquot->dq_dqb.dqb_btime = (time64_t) 0; in dquot_free_reserved_space()
1152 dquot->dq_dqb.dqb_curinodes >= number) in dquot_decr_inodes()
1153 dquot->dq_dqb.dqb_curinodes -= number; in dquot_decr_inodes()
1155 dquot->dq_dqb.dqb_curinodes = 0; in dquot_decr_inodes()
1156 if (dquot->dq_dqb.dqb_curinodes <= dquot->dq_dqb.dqb_isoftlimit) in dquot_decr_inodes()
1157 dquot->dq_dqb.dqb_itime = (time64_t) 0; in dquot_decr_inodes()
1164 dquot->dq_dqb.dqb_curspace >= number) in dquot_decr_space()
1165 dquot->dq_dqb.dqb_curspace -= number; in dquot_decr_space()
1167 dquot->dq_dqb.dqb_curspace = 0; in dquot_decr_space()
1168 if (dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace <= in dquot_decr_space()
1169 dquot->dq_dqb.dqb_bsoftlimit) in dquot_decr_space()
1170 dquot->dq_dqb.dqb_btime = (time64_t) 0; in dquot_decr_space()
1304 newinodes = dquot->dq_dqb.dqb_curinodes + inodes; in dquot_add_inodes()
1309 if (dquot->dq_dqb.dqb_ihardlimit && in dquot_add_inodes()
1310 newinodes > dquot->dq_dqb.dqb_ihardlimit && in dquot_add_inodes()
1317 if (dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1318 newinodes > dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1319 dquot->dq_dqb.dqb_itime && in dquot_add_inodes()
1320 ktime_get_real_seconds() >= dquot->dq_dqb.dqb_itime && in dquot_add_inodes()
1327 if (dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1328 newinodes > dquot->dq_dqb.dqb_isoftlimit && in dquot_add_inodes()
1329 dquot->dq_dqb.dqb_itime == 0) { in dquot_add_inodes()
1331 dquot->dq_dqb.dqb_itime = ktime_get_real_seconds() + in dquot_add_inodes()
1335 dquot->dq_dqb.dqb_curinodes = newinodes; in dquot_add_inodes()
1355 tspace = dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace in dquot_add_space()
1358 if (dquot->dq_dqb.dqb_bhardlimit && in dquot_add_space()
1359 tspace > dquot->dq_dqb.dqb_bhardlimit && in dquot_add_space()
1367 if (dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1368 tspace > dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1369 dquot->dq_dqb.dqb_btime && in dquot_add_space()
1370 ktime_get_real_seconds() >= dquot->dq_dqb.dqb_btime && in dquot_add_space()
1378 if (dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1379 tspace > dquot->dq_dqb.dqb_bsoftlimit && in dquot_add_space()
1380 dquot->dq_dqb.dqb_btime == 0) { in dquot_add_space()
1383 dquot->dq_dqb.dqb_btime = ktime_get_real_seconds() + in dquot_add_space()
1403 dquot->dq_dqb.dqb_rsvspace += rsv_space; in dquot_add_space()
1404 dquot->dq_dqb.dqb_curspace += space; in dquot_add_space()
1415 dquot->dq_dqb.dqb_curinodes <= dquot->dq_dqb.dqb_isoftlimit || in info_idq_free()
1419 newinodes = dquot->dq_dqb.dqb_curinodes - inodes; in info_idq_free()
1420 if (newinodes <= dquot->dq_dqb.dqb_isoftlimit) in info_idq_free()
1422 if (dquot->dq_dqb.dqb_curinodes >= dquot->dq_dqb.dqb_ihardlimit && in info_idq_free()
1423 newinodes < dquot->dq_dqb.dqb_ihardlimit) in info_idq_free()
1432 tspace = dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace; in info_bdq_free()
1435 tspace <= dquot->dq_dqb.dqb_bsoftlimit) in info_bdq_free()
1438 if (tspace - space <= dquot->dq_dqb.dqb_bsoftlimit) in info_bdq_free()
1440 if (tspace >= dquot->dq_dqb.dqb_bhardlimit && in info_bdq_free()
1441 tspace - space < dquot->dq_dqb.dqb_bhardlimit) in info_bdq_free()
1551 dquots[cnt]->dq_dqb.dqb_rsvspace += rsv; in __dquot_initialize()
1818 if (WARN_ON_ONCE(dquot->dq_dqb.dqb_rsvspace < number)) in dquot_claim_space_nodirty()
1819 number = dquot->dq_dqb.dqb_rsvspace; in dquot_claim_space_nodirty()
1820 dquot->dq_dqb.dqb_curspace += number; in dquot_claim_space_nodirty()
1821 dquot->dq_dqb.dqb_rsvspace -= number; in dquot_claim_space_nodirty()
1860 if (WARN_ON_ONCE(dquot->dq_dqb.dqb_curspace < number)) in dquot_reclaim_space_nodirty()
1861 number = dquot->dq_dqb.dqb_curspace; in dquot_reclaim_space_nodirty()
1862 dquot->dq_dqb.dqb_rsvspace += number; in dquot_reclaim_space_nodirty()
1863 dquot->dq_dqb.dqb_curspace -= number; in dquot_reclaim_space_nodirty()
2635 struct mem_dqblk *dm = &dquot->dq_dqb; in do_get_dqblk()
2694 struct mem_dqblk *dm = &dquot->dq_dqb; in do_set_dqblk()