Lines Matching refs:dquot
267 static inline void insert_dquot_hash(struct dquot *dquot) in insert_dquot_hash() argument
270 head = dquot_hash + hashfn(dquot->dq_sb, dquot->dq_id, dquot->dq_type); in insert_dquot_hash()
271 hlist_add_head(&dquot->dq_hash, head); in insert_dquot_hash()
274 static inline void remove_dquot_hash(struct dquot *dquot) in remove_dquot_hash() argument
276 hlist_del_init(&dquot->dq_hash); in remove_dquot_hash()
279 static struct dquot *find_dquot(unsigned int hashent, struct super_block *sb, in find_dquot()
283 struct dquot *dquot; in find_dquot() local
286 dquot = hlist_entry(node, struct dquot, dq_hash); in find_dquot()
287 if (dquot->dq_sb == sb && dquot->dq_id == id && in find_dquot()
288 dquot->dq_type == type) in find_dquot()
289 return dquot; in find_dquot()
295 static inline void put_dquot_last(struct dquot *dquot) in put_dquot_last() argument
297 list_add_tail(&dquot->dq_free, &free_dquots); in put_dquot_last()
301 static inline void remove_free_dquot(struct dquot *dquot) in remove_free_dquot() argument
303 if (list_empty(&dquot->dq_free)) in remove_free_dquot()
305 list_del_init(&dquot->dq_free); in remove_free_dquot()
309 static inline void put_inuse(struct dquot *dquot) in put_inuse() argument
313 list_add_tail(&dquot->dq_inuse, &inuse_list); in put_inuse()
317 static inline void remove_inuse(struct dquot *dquot) in remove_inuse() argument
320 list_del(&dquot->dq_inuse); in remove_inuse()
326 static void wait_on_dquot(struct dquot *dquot) in wait_on_dquot() argument
328 mutex_lock(&dquot->dq_lock); in wait_on_dquot()
329 mutex_unlock(&dquot->dq_lock); in wait_on_dquot()
332 static inline int dquot_dirty(struct dquot *dquot) in dquot_dirty() argument
334 return test_bit(DQ_MOD_B, &dquot->dq_flags); in dquot_dirty()
337 static inline int mark_dquot_dirty(struct dquot *dquot) in mark_dquot_dirty() argument
339 return dquot->dq_sb->dq_op->mark_dirty(dquot); in mark_dquot_dirty()
343 int dquot_mark_dquot_dirty(struct dquot *dquot) in dquot_mark_dquot_dirty() argument
348 if (test_bit(DQ_MOD_B, &dquot->dq_flags)) in dquot_mark_dquot_dirty()
352 if (!test_and_set_bit(DQ_MOD_B, &dquot->dq_flags)) { in dquot_mark_dquot_dirty()
353 list_add(&dquot->dq_dirty, &sb_dqopt(dquot->dq_sb)-> in dquot_mark_dquot_dirty()
354 info[dquot->dq_type].dqi_dirty_list); in dquot_mark_dquot_dirty()
363 static inline int mark_all_dquot_dirty(struct dquot * const *dquot) in mark_all_dquot_dirty() argument
369 if (dquot[cnt]) in mark_all_dquot_dirty()
371 ret = mark_dquot_dirty(dquot[cnt]); in mark_all_dquot_dirty()
378 static inline void dqput_all(struct dquot **dquot) in dqput_all() argument
383 dqput(dquot[cnt]); in dqput_all()
387 static inline int clear_dquot_dirty(struct dquot *dquot) in clear_dquot_dirty() argument
389 if (!test_and_clear_bit(DQ_MOD_B, &dquot->dq_flags)) in clear_dquot_dirty()
391 list_del_init(&dquot->dq_dirty); in clear_dquot_dirty()
405 int dquot_acquire(struct dquot *dquot) in dquot_acquire() argument
408 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in dquot_acquire()
410 mutex_lock(&dquot->dq_lock); in dquot_acquire()
412 if (!test_bit(DQ_READ_B, &dquot->dq_flags)) in dquot_acquire()
413 ret = dqopt->ops[dquot->dq_type]->read_dqblk(dquot); in dquot_acquire()
416 set_bit(DQ_READ_B, &dquot->dq_flags); in dquot_acquire()
418 if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags) && !dquot->dq_off) { in dquot_acquire()
419 ret = dqopt->ops[dquot->dq_type]->commit_dqblk(dquot); in dquot_acquire()
421 if (info_dirty(&dqopt->info[dquot->dq_type])) { in dquot_acquire()
422 ret2 = dqopt->ops[dquot->dq_type]->write_file_info( in dquot_acquire()
423 dquot->dq_sb, dquot->dq_type); in dquot_acquire()
432 set_bit(DQ_ACTIVE_B, &dquot->dq_flags); in dquot_acquire()
435 mutex_unlock(&dquot->dq_lock); in dquot_acquire()
443 int dquot_commit(struct dquot *dquot) in dquot_commit() argument
446 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in dquot_commit()
450 if (!clear_dquot_dirty(dquot)) { in dquot_commit()
457 if (test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) in dquot_commit()
458 ret = dqopt->ops[dquot->dq_type]->commit_dqblk(dquot); in dquot_commit()
470 int dquot_release(struct dquot *dquot) in dquot_release() argument
473 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in dquot_release()
475 mutex_lock(&dquot->dq_lock); in dquot_release()
477 if (atomic_read(&dquot->dq_count) > 1) in dquot_release()
480 if (dqopt->ops[dquot->dq_type]->release_dqblk) { in dquot_release()
481 ret = dqopt->ops[dquot->dq_type]->release_dqblk(dquot); in dquot_release()
483 if (info_dirty(&dqopt->info[dquot->dq_type])) { in dquot_release()
484 ret2 = dqopt->ops[dquot->dq_type]->write_file_info( in dquot_release()
485 dquot->dq_sb, dquot->dq_type); in dquot_release()
490 clear_bit(DQ_ACTIVE_B, &dquot->dq_flags); in dquot_release()
493 mutex_unlock(&dquot->dq_lock); in dquot_release()
498 void dquot_destroy(struct dquot *dquot) in dquot_destroy() argument
500 kmem_cache_free(dquot_cachep, dquot); in dquot_destroy()
504 static inline void do_destroy_dquot(struct dquot *dquot) in do_destroy_dquot() argument
506 dquot->dq_sb->dq_op->destroy_dquot(dquot); in do_destroy_dquot()
517 struct dquot *dquot, *tmp; in invalidate_dquots() local
521 list_for_each_entry_safe(dquot, tmp, &inuse_list, dq_inuse) { in invalidate_dquots()
522 if (dquot->dq_sb != sb) in invalidate_dquots()
524 if (dquot->dq_type != type) in invalidate_dquots()
527 if (atomic_read(&dquot->dq_count)) { in invalidate_dquots()
530 atomic_inc(&dquot->dq_count); in invalidate_dquots()
531 prepare_to_wait(&dquot->dq_wait_unused, &wait, in invalidate_dquots()
541 if (atomic_read(&dquot->dq_count) > 1) in invalidate_dquots()
543 finish_wait(&dquot->dq_wait_unused, &wait); in invalidate_dquots()
544 dqput(dquot); in invalidate_dquots()
554 remove_dquot_hash(dquot); in invalidate_dquots()
555 remove_free_dquot(dquot); in invalidate_dquots()
556 remove_inuse(dquot); in invalidate_dquots()
557 do_destroy_dquot(dquot); in invalidate_dquots()
564 int (*fn)(struct dquot *dquot, unsigned long priv), in dquot_scan_active() argument
567 struct dquot *dquot, *old_dquot = NULL; in dquot_scan_active() local
572 list_for_each_entry(dquot, &inuse_list, dq_inuse) { in dquot_scan_active()
573 if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) in dquot_scan_active()
575 if (dquot->dq_sb != sb) in dquot_scan_active()
578 atomic_inc(&dquot->dq_count); in dquot_scan_active()
582 old_dquot = dquot; in dquot_scan_active()
583 ret = fn(dquot, priv); in dquot_scan_active()
601 struct dquot *dquot; in dquot_quota_sync() local
614 dquot = list_first_entry(dirty, struct dquot, in dquot_quota_sync()
617 if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) { in dquot_quota_sync()
618 clear_dquot_dirty(dquot); in dquot_quota_sync()
624 atomic_inc(&dquot->dq_count); in dquot_quota_sync()
627 sb->dq_op->write_dquot(dquot); in dquot_quota_sync()
628 dqput(dquot); in dquot_quota_sync()
676 struct dquot *dquot; in prune_dqcache() local
680 dquot = list_entry(head, struct dquot, dq_free); in prune_dqcache()
681 remove_dquot_hash(dquot); in prune_dqcache()
682 remove_free_dquot(dquot); in prune_dqcache()
683 remove_inuse(dquot); in prune_dqcache()
684 do_destroy_dquot(dquot); in prune_dqcache()
715 void dqput(struct dquot *dquot) in dqput() argument
719 if (!dquot) in dqput()
722 if (!atomic_read(&dquot->dq_count)) { in dqput()
723 quota_error(dquot->dq_sb, "trying to free free dquot of %s %d", in dqput()
724 quotatypes[dquot->dq_type], dquot->dq_id); in dqput()
731 if (atomic_read(&dquot->dq_count) > 1) { in dqput()
733 atomic_dec(&dquot->dq_count); in dqput()
735 if (!sb_has_quota_active(dquot->dq_sb, dquot->dq_type) && in dqput()
736 atomic_read(&dquot->dq_count) == 1) in dqput()
737 wake_up(&dquot->dq_wait_unused); in dqput()
742 if (test_bit(DQ_ACTIVE_B, &dquot->dq_flags) && dquot_dirty(dquot)) { in dqput()
745 ret = dquot->dq_sb->dq_op->write_dquot(dquot); in dqput()
747 quota_error(dquot->dq_sb, "Can't write quota structure" in dqput()
755 clear_dquot_dirty(dquot); in dqput()
761 clear_dquot_dirty(dquot); in dqput()
762 if (test_bit(DQ_ACTIVE_B, &dquot->dq_flags)) { in dqput()
764 dquot->dq_sb->dq_op->release_dquot(dquot); in dqput()
767 atomic_dec(&dquot->dq_count); in dqput()
770 BUG_ON(!list_empty(&dquot->dq_free)); in dqput()
772 put_dquot_last(dquot); in dqput()
777 struct dquot *dquot_alloc(struct super_block *sb, int type) in dquot_alloc()
783 static struct dquot *get_empty_dquot(struct super_block *sb, int type) in get_empty_dquot()
785 struct dquot *dquot; in get_empty_dquot() local
787 dquot = sb->dq_op->alloc_dquot(sb, type); in get_empty_dquot()
788 if(!dquot) in get_empty_dquot()
791 mutex_init(&dquot->dq_lock); in get_empty_dquot()
792 INIT_LIST_HEAD(&dquot->dq_free); in get_empty_dquot()
793 INIT_LIST_HEAD(&dquot->dq_inuse); in get_empty_dquot()
794 INIT_HLIST_NODE(&dquot->dq_hash); in get_empty_dquot()
795 INIT_LIST_HEAD(&dquot->dq_dirty); in get_empty_dquot()
796 init_waitqueue_head(&dquot->dq_wait_unused); in get_empty_dquot()
797 dquot->dq_sb = sb; in get_empty_dquot()
798 dquot->dq_type = type; in get_empty_dquot()
799 atomic_set(&dquot->dq_count, 1); in get_empty_dquot()
801 return dquot; in get_empty_dquot()
812 struct dquot *dqget(struct super_block *sb, unsigned int id, int type) in dqget()
815 struct dquot *dquot = NULL, *empty = NULL; in dqget() local
829 dquot = find_dquot(hashent, sb, id, type); in dqget()
830 if (!dquot) { in dqget()
838 dquot = empty; in dqget()
840 dquot->dq_id = id; in dqget()
842 put_inuse(dquot); in dqget()
844 insert_dquot_hash(dquot); in dqget()
848 if (!atomic_read(&dquot->dq_count)) in dqget()
849 remove_free_dquot(dquot); in dqget()
850 atomic_inc(&dquot->dq_count); in dqget()
857 wait_on_dquot(dquot); in dqget()
859 if (!test_bit(DQ_ACTIVE_B, &dquot->dq_flags) && in dqget()
860 sb->dq_op->acquire_dquot(dquot) < 0) { in dqget()
861 dqput(dquot); in dqget()
862 dquot = NULL; in dqget()
866 BUG_ON(!dquot->dq_sb); /* Has somebody invalidated entry under us? */ in dqget()
872 return dquot; in dqget()
945 static inline int dqput_blocks(struct dquot *dquot) in dqput_blocks() argument
947 if (atomic_read(&dquot->dq_count) <= 1) in dqput_blocks()
960 struct dquot *dquot = inode->i_dquot[type]; in remove_inode_dquot_ref() local
963 if (dquot) { in remove_inode_dquot_ref()
964 if (dqput_blocks(dquot)) { in remove_inode_dquot_ref()
966 if (atomic_read(&dquot->dq_count) != 1) in remove_inode_dquot_ref()
969 atomic_read(&dquot->dq_count)); in remove_inode_dquot_ref()
974 list_add(&dquot->dq_free, tofree_head); in remove_inode_dquot_ref()
979 dqput(dquot); /* We have guaranteed we won't block */ in remove_inode_dquot_ref()
992 struct dquot *dquot; in put_dquot_list() local
996 dquot = list_entry(act_head, struct dquot, dq_free); in put_dquot_list()
999 list_del_init(&dquot->dq_free); in put_dquot_list()
1000 dqput(dquot); in put_dquot_list()
1047 static inline void dquot_incr_inodes(struct dquot *dquot, qsize_t number) in dquot_incr_inodes() argument
1049 dquot->dq_dqb.dqb_curinodes += number; in dquot_incr_inodes()
1052 static inline void dquot_incr_space(struct dquot *dquot, qsize_t number) in dquot_incr_space() argument
1054 dquot->dq_dqb.dqb_curspace += number; in dquot_incr_space()
1057 static inline void dquot_resv_space(struct dquot *dquot, qsize_t number) in dquot_resv_space() argument
1059 dquot->dq_dqb.dqb_rsvspace += number; in dquot_resv_space()
1065 static void dquot_claim_reserved_space(struct dquot *dquot, qsize_t number) in dquot_claim_reserved_space() argument
1067 if (dquot->dq_dqb.dqb_rsvspace < number) { in dquot_claim_reserved_space()
1069 number = dquot->dq_dqb.dqb_rsvspace; in dquot_claim_reserved_space()
1071 dquot->dq_dqb.dqb_curspace += number; in dquot_claim_reserved_space()
1072 dquot->dq_dqb.dqb_rsvspace -= number; in dquot_claim_reserved_space()
1076 void dquot_free_reserved_space(struct dquot *dquot, qsize_t number) in dquot_free_reserved_space() argument
1078 if (dquot->dq_dqb.dqb_rsvspace >= number) in dquot_free_reserved_space()
1079 dquot->dq_dqb.dqb_rsvspace -= number; in dquot_free_reserved_space()
1082 dquot->dq_dqb.dqb_rsvspace = 0; in dquot_free_reserved_space()
1086 static void dquot_decr_inodes(struct dquot *dquot, qsize_t number) in dquot_decr_inodes() argument
1088 if (sb_dqopt(dquot->dq_sb)->flags & DQUOT_NEGATIVE_USAGE || in dquot_decr_inodes()
1089 dquot->dq_dqb.dqb_curinodes >= number) in dquot_decr_inodes()
1090 dquot->dq_dqb.dqb_curinodes -= number; in dquot_decr_inodes()
1092 dquot->dq_dqb.dqb_curinodes = 0; in dquot_decr_inodes()
1093 if (dquot->dq_dqb.dqb_curinodes <= dquot->dq_dqb.dqb_isoftlimit) in dquot_decr_inodes()
1094 dquot->dq_dqb.dqb_itime = (time_t) 0; in dquot_decr_inodes()
1095 clear_bit(DQ_INODES_B, &dquot->dq_flags); in dquot_decr_inodes()
1098 static void dquot_decr_space(struct dquot *dquot, qsize_t number) in dquot_decr_space() argument
1100 if (sb_dqopt(dquot->dq_sb)->flags & DQUOT_NEGATIVE_USAGE || in dquot_decr_space()
1101 dquot->dq_dqb.dqb_curspace >= number) in dquot_decr_space()
1102 dquot->dq_dqb.dqb_curspace -= number; in dquot_decr_space()
1104 dquot->dq_dqb.dqb_curspace = 0; in dquot_decr_space()
1105 if (dquot->dq_dqb.dqb_curspace <= dquot->dq_dqb.dqb_bsoftlimit) in dquot_decr_space()
1106 dquot->dq_dqb.dqb_btime = (time_t) 0; in dquot_decr_space()
1107 clear_bit(DQ_BLKS_B, &dquot->dq_flags); in dquot_decr_space()
1110 static int warning_issued(struct dquot *dquot, const int warntype) in warning_issued() argument
1119 return test_and_set_bit(flag, &dquot->dq_flags); in warning_issued()
1125 static int need_print_warning(struct dquot *dquot) in need_print_warning() argument
1130 switch (dquot->dq_type) { in need_print_warning()
1132 return current_fsuid() == dquot->dq_id; in need_print_warning()
1134 return in_group_p(dquot->dq_id); in need_print_warning()
1140 static void print_warning(struct dquot *dquot, const int warntype) in print_warning() argument
1148 warntype == QUOTA_NL_BSOFTBELOW || !need_print_warning(dquot)) in print_warning()
1154 tty_write_message(tty, dquot->dq_sb->s_id); in print_warning()
1159 tty_write_message(tty, quotatypes[dquot->dq_type]); in print_warning()
1190 static void flush_warnings(struct dquot *const *dquots, char *warntype) in flush_warnings()
1192 struct dquot *dq; in flush_warnings()
1208 static int ignore_hardlimit(struct dquot *dquot) in ignore_hardlimit() argument
1210 struct mem_dqinfo *info = &sb_dqopt(dquot->dq_sb)->info[dquot->dq_type]; in ignore_hardlimit()
1218 static int check_idq(struct dquot *dquot, qsize_t inodes, char *warntype) in check_idq() argument
1220 qsize_t newinodes = dquot->dq_dqb.dqb_curinodes + inodes; in check_idq()
1223 if (!sb_has_quota_limits_enabled(dquot->dq_sb, dquot->dq_type) || in check_idq()
1224 test_bit(DQ_FAKE_B, &dquot->dq_flags)) in check_idq()
1227 if (dquot->dq_dqb.dqb_ihardlimit && in check_idq()
1228 newinodes > dquot->dq_dqb.dqb_ihardlimit && in check_idq()
1229 !ignore_hardlimit(dquot)) { in check_idq()
1234 if (dquot->dq_dqb.dqb_isoftlimit && in check_idq()
1235 newinodes > dquot->dq_dqb.dqb_isoftlimit && in check_idq()
1236 dquot->dq_dqb.dqb_itime && in check_idq()
1237 get_seconds() >= dquot->dq_dqb.dqb_itime && in check_idq()
1238 !ignore_hardlimit(dquot)) { in check_idq()
1243 if (dquot->dq_dqb.dqb_isoftlimit && in check_idq()
1244 newinodes > dquot->dq_dqb.dqb_isoftlimit && in check_idq()
1245 dquot->dq_dqb.dqb_itime == 0) { in check_idq()
1247 dquot->dq_dqb.dqb_itime = get_seconds() + in check_idq()
1248 sb_dqopt(dquot->dq_sb)->info[dquot->dq_type].dqi_igrace; in check_idq()
1255 static int check_bdq(struct dquot *dquot, qsize_t space, int prealloc, char *warntype) in check_bdq() argument
1258 struct super_block *sb = dquot->dq_sb; in check_bdq()
1261 if (!sb_has_quota_limits_enabled(sb, dquot->dq_type) || in check_bdq()
1262 test_bit(DQ_FAKE_B, &dquot->dq_flags)) in check_bdq()
1265 tspace = dquot->dq_dqb.dqb_curspace + dquot->dq_dqb.dqb_rsvspace in check_bdq()
1268 if (dquot->dq_dqb.dqb_bhardlimit && in check_bdq()
1269 tspace > dquot->dq_dqb.dqb_bhardlimit && in check_bdq()
1270 !ignore_hardlimit(dquot)) { in check_bdq()
1276 if (dquot->dq_dqb.dqb_bsoftlimit && in check_bdq()
1277 tspace > dquot->dq_dqb.dqb_bsoftlimit && in check_bdq()
1278 dquot->dq_dqb.dqb_btime && in check_bdq()
1279 get_seconds() >= dquot->dq_dqb.dqb_btime && in check_bdq()
1280 !ignore_hardlimit(dquot)) { in check_bdq()
1286 if (dquot->dq_dqb.dqb_bsoftlimit && in check_bdq()
1287 tspace > dquot->dq_dqb.dqb_bsoftlimit && in check_bdq()
1288 dquot->dq_dqb.dqb_btime == 0) { in check_bdq()
1291 dquot->dq_dqb.dqb_btime = get_seconds() + in check_bdq()
1292 sb_dqopt(sb)->info[dquot->dq_type].dqi_bgrace; in check_bdq()
1305 static int info_idq_free(struct dquot *dquot, qsize_t inodes) in info_idq_free() argument
1309 if (test_bit(DQ_FAKE_B, &dquot->dq_flags) || in info_idq_free()
1310 dquot->dq_dqb.dqb_curinodes <= dquot->dq_dqb.dqb_isoftlimit || in info_idq_free()
1311 !sb_has_quota_limits_enabled(dquot->dq_sb, dquot->dq_type)) in info_idq_free()
1314 newinodes = dquot->dq_dqb.dqb_curinodes - inodes; in info_idq_free()
1315 if (newinodes <= dquot->dq_dqb.dqb_isoftlimit) in info_idq_free()
1317 if (dquot->dq_dqb.dqb_curinodes >= dquot->dq_dqb.dqb_ihardlimit && in info_idq_free()
1318 newinodes < dquot->dq_dqb.dqb_ihardlimit) in info_idq_free()
1323 static int info_bdq_free(struct dquot *dquot, qsize_t space) in info_bdq_free() argument
1325 if (test_bit(DQ_FAKE_B, &dquot->dq_flags) || in info_bdq_free()
1326 dquot->dq_dqb.dqb_curspace <= dquot->dq_dqb.dqb_bsoftlimit) in info_bdq_free()
1329 if (dquot->dq_dqb.dqb_curspace - space <= dquot->dq_dqb.dqb_bsoftlimit) in info_bdq_free()
1331 if (dquot->dq_dqb.dqb_curspace >= dquot->dq_dqb.dqb_bhardlimit && in info_bdq_free()
1332 dquot->dq_dqb.dqb_curspace - space < dquot->dq_dqb.dqb_bhardlimit) in info_bdq_free()
1359 struct dquot *got[MAXQUOTAS]; in __dquot_initialize()
1426 struct dquot *put[MAXQUOTAS]; in __dquot_drop()
1740 int __dquot_transfer(struct inode *inode, struct dquot **transfer_to) in __dquot_transfer()
1744 struct dquot *transfer_from[MAXQUOTAS] = {}; in __dquot_transfer()
1836 struct dquot *transfer_to[MAXQUOTAS] = {}; in dquot_transfer()
2299 static void do_get_dqblk(struct dquot *dquot, struct fs_disk_quota *di) in do_get_dqblk() argument
2301 struct mem_dqblk *dm = &dquot->dq_dqb; in do_get_dqblk()
2305 di->d_flags = dquot->dq_type == USRQUOTA ? in do_get_dqblk()
2307 di->d_id = dquot->dq_id; in do_get_dqblk()
2324 struct dquot *dquot; in dquot_get_dqblk() local
2326 dquot = dqget(sb, id, type); in dquot_get_dqblk()
2327 if (!dquot) in dquot_get_dqblk()
2329 do_get_dqblk(dquot, di); in dquot_get_dqblk()
2330 dqput(dquot); in dquot_get_dqblk()
2342 static int do_set_dqblk(struct dquot *dquot, struct fs_disk_quota *di) in do_set_dqblk() argument
2344 struct mem_dqblk *dm = &dquot->dq_dqb; in do_set_dqblk()
2346 struct mem_dqinfo *dqi = &sb_dqopt(dquot->dq_sb)->info[dquot->dq_type]; in do_set_dqblk()
2365 set_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot->dq_flags); in do_set_dqblk()
2374 set_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags); in do_set_dqblk()
2380 set_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags); in do_set_dqblk()
2389 set_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags); in do_set_dqblk()
2395 set_bit(DQ_LASTSET_B + QIF_BTIME_B, &dquot->dq_flags); in do_set_dqblk()
2401 set_bit(DQ_LASTSET_B + QIF_ITIME_B, &dquot->dq_flags); in do_set_dqblk()
2408 clear_bit(DQ_BLKS_B, &dquot->dq_flags); in do_set_dqblk()
2417 clear_bit(DQ_INODES_B, &dquot->dq_flags); in do_set_dqblk()
2424 clear_bit(DQ_FAKE_B, &dquot->dq_flags); in do_set_dqblk()
2426 set_bit(DQ_FAKE_B, &dquot->dq_flags); in do_set_dqblk()
2428 mark_dquot_dirty(dquot); in do_set_dqblk()
2436 struct dquot *dquot; in dquot_set_dqblk() local
2439 dquot = dqget(sb, id, type); in dquot_set_dqblk()
2440 if (!dquot) { in dquot_set_dqblk()
2444 rc = do_set_dqblk(dquot, di); in dquot_set_dqblk()
2445 dqput(dquot); in dquot_set_dqblk()
2622 sizeof(struct dquot), sizeof(unsigned long) * 4, in dquot_init()