/kernel/linux/linux-5.10/fs/quota/ |
H A D | dquot.c | 38 * Write updated not to require dquot lock 90 * * dquot->dq_dqb_lock protects data from dq_dqb 92 * consistency of dquot->dq_dqb with inode->i_blocks, i_bytes so that 94 * * dq_data_lock protects mem_dqinfo structures and modifications of dquot 100 * dq_data_lock > dq_list_lock > i_lock > dquot->dq_dqb_lock, 104 * the life of the dquot structure and so needn't to be protected by a lock 109 * inode and before dropping dquot references to avoid use of dquots after 119 * Each dquot has its dq_lock mutex. Dquot is locked when it is being read to 126 * s_umount > i_mutex > journal_lock > dquot->dq_lock > dqio_sem 163 /* SLAB cache for dquot structure 289 insert_dquot_hash(struct dquot *dquot) insert_dquot_hash() argument 296 remove_dquot_hash(struct dquot *dquot) remove_dquot_hash() argument 305 struct dquot *dquot; find_dquot() local 316 put_dquot_last(struct dquot *dquot) put_dquot_last() argument 322 put_releasing_dquots(struct dquot *dquot) put_releasing_dquots() argument 328 remove_free_dquot(struct dquot *dquot) remove_free_dquot() argument 339 put_inuse(struct dquot *dquot) put_inuse() argument 347 remove_inuse(struct dquot *dquot) remove_inuse() argument 356 wait_on_dquot(struct dquot *dquot) wait_on_dquot() argument 362 dquot_active(struct dquot *dquot) dquot_active() argument 367 dquot_dirty(struct dquot *dquot) dquot_dirty() argument 372 mark_dquot_dirty(struct dquot *dquot) mark_dquot_dirty() argument 378 dquot_mark_dquot_dirty(struct dquot *dquot) dquot_mark_dquot_dirty() argument 407 struct dquot *dquot; mark_all_dquot_dirty() local 421 dqput_all(struct dquot **dquot) dqput_all() argument 429 clear_dquot_dirty(struct dquot *dquot) clear_dquot_dirty() argument 456 dquot_acquire(struct dquot *dquot) dquot_acquire() argument 503 dquot_commit(struct dquot *dquot) dquot_commit() argument 529 dquot_release(struct dquot *dquot) dquot_release() argument 558 dquot_destroy(struct dquot *dquot) dquot_destroy() argument 564 do_destroy_dquot(struct dquot *dquot) do_destroy_dquot() argument 577 struct dquot *dquot, *tmp; invalidate_dquots() local 630 dquot_scan_active(struct super_block *sb, int (*fn)(struct dquot *dquot, unsigned long priv), unsigned long priv) dquot_scan_active() argument 634 struct dquot *dquot, *old_dquot = NULL; dquot_scan_active() local 672 dquot_write_dquot(struct dquot *dquot) dquot_write_dquot() argument 688 struct dquot *dquot; dquot_writeback_dquots() local 786 struct dquot *dquot; dqcache_shrink_scan() local 821 struct dquot *dquot; quota_release_workfn() local 861 dqput(struct dquot *dquot) dqput() argument 907 struct dquot *dquot; get_empty_dquot() local 937 struct dquot *dquot, *empty = NULL; dqget() local 1099 struct dquot *dquot = dquots[type]; remove_inode_dquot_ref() local 1130 struct dquot *dquot; put_dquot_list() local 1191 dquot_free_reserved_space(struct dquot *dquot, qsize_t number) dquot_free_reserved_space() argument 1205 dquot_decr_inodes(struct dquot *dquot, qsize_t number) dquot_decr_inodes() argument 1217 dquot_decr_space(struct dquot *dquot, qsize_t number) dquot_decr_space() argument 1236 warning_issued(struct dquot *dquot, const int warntype) warning_issued() argument 1314 prepare_warning(struct dquot_warn *warn, struct dquot *dquot, int warntype) prepare_warning() argument 1344 ignore_hardlimit(struct dquot *dquot) ignore_hardlimit() argument 1353 dquot_add_inodes(struct dquot *dquot, qsize_t inodes, struct dquot_warn *warn) dquot_add_inodes() argument 1398 dquot_add_space(struct dquot *dquot, qsize_t space, qsize_t rsv_space, unsigned int flags, struct dquot_warn *warn) dquot_add_space() argument 1466 info_idq_free(struct dquot *dquot, qsize_t inodes) info_idq_free() argument 1484 info_bdq_free(struct dquot *dquot, qsize_t space) info_bdq_free() argument 1535 struct dquot *dquot; __dquot_initialize() local 1743 struct dquot *dquot; __dquot_alloc_space() local 1813 struct dquot *dquot; dquot_alloc_inode() local 1858 struct dquot *dquot; dquot_claim_space_nodirty() local 1900 struct dquot *dquot; dquot_reclaim_space_nodirty() local 1944 struct dquot *dquot; __dquot_free_space() local 2001 struct dquot *dquot; dquot_free_inode() local 2179 struct dquot *dquot; dquot_transfer() local 2711 do_get_dqblk(struct dquot *dquot, struct qc_dqblk *di) do_get_dqblk() argument 2731 struct dquot *dquot; dquot_get_dqblk() local 2746 struct dquot *dquot; dquot_get_next_dqblk() local 2770 do_set_dqblk(struct dquot *dquot, struct qc_dqblk *di) do_set_dqblk() argument 2864 struct dquot *dquot; dquot_set_dqblk() local [all...] |
H A D | quota_tree.c | 256 /* Find space for dquot */ 258 struct dquot *dquot, int *err) in find_free_dqentry() 290 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry() 296 quota_error(dquot->dq_sb, "Can't remove block (%u) " in find_free_dqentry() 311 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); in find_free_dqentry() 318 quota_error(dquot->dq_sb, "Can't write quota data block %u", in find_free_dqentry() 322 dquot->dq_off = ((loff_t)blk << info->dqi_blocksize_bits) + in find_free_dqentry() 333 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquo argument 257 find_free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, int *err) find_free_dqentry() argument 390 dq_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot) dq_insert_tree() argument 408 qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_write_dquot() argument 448 free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk) free_dqentry() argument 513 remove_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blk, int depth) remove_tree() argument 568 qtree_delete_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_delete_dquot() argument 579 find_block_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk) find_block_dqentry() argument 617 find_tree_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk, int depth) find_tree_dqentry() argument 653 find_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot) find_dqentry() argument 659 qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_read_dquot() argument 723 qtree_release_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_release_dquot() argument [all...] |
H A D | quota_v2.c | 25 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot); 26 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp); 27 static int v2r0_is_id(void *dp, struct dquot *dquot); 28 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot); 29 static void v2r1_disk2memdqb(struct dquot *dquot, voi 220 v2r0_disk2memdqb(struct dquot *dquot, void *dp) v2r0_disk2memdqb() argument 240 v2r0_mem2diskdqb(void *dp, struct dquot *dquot) v2r0_mem2diskdqb() argument 260 v2r0_is_id(void *dp, struct dquot *dquot) v2r0_is_id() argument 273 v2r1_disk2memdqb(struct dquot *dquot, void *dp) v2r1_disk2memdqb() argument 293 v2r1_mem2diskdqb(void *dp, struct dquot *dquot) v2r1_mem2diskdqb() argument 314 v2r1_is_id(void *dp, struct dquot *dquot) v2r1_is_id() argument 327 v2_read_dquot(struct dquot *dquot) v2_read_dquot() argument 340 v2_write_dquot(struct dquot *dquot) v2_write_dquot() argument 368 v2_release_dquot(struct dquot *dquot) v2_release_dquot() argument [all...] |
H A D | quota_v1.c | 56 static int v1_read_dqblk(struct dquot *dquot) in v1_read_dqblk() argument 58 int type = dquot->dq_id.type; in v1_read_dqblk() 60 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in v1_read_dqblk() 67 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, in v1_read_dqblk() 69 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); in v1_read_dqblk() 71 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk() 72 if (dquot->dq_dqb.dqb_bhardlimit == 0 && in v1_read_dqblk() 73 dquot in v1_read_dqblk() 82 v1_commit_dqblk(struct dquot *dquot) v1_commit_dqblk() argument [all...] |
/kernel/linux/linux-6.6/fs/quota/ |
H A D | dquot.c | 38 * Write updated not to require dquot lock 90 * * dquot->dq_dqb_lock protects data from dq_dqb 92 * consistency of dquot->dq_dqb with inode->i_blocks, i_bytes so that 94 * * dq_data_lock protects mem_dqinfo structures and modifications of dquot 100 * dq_data_lock > dq_list_lock > i_lock > dquot->dq_dqb_lock, 104 * the life of the dquot structure and so needn't to be protected by a lock 109 * inode and before dropping dquot references to avoid use of dquots after 119 * Each dquot has its dq_lock mutex. Dquot is locked when it is being read to 126 * s_umount > i_mutex > journal_lock > dquot->dq_lock > dqio_sem 163 /* SLAB cache for dquot structure 289 insert_dquot_hash(struct dquot *dquot) insert_dquot_hash() argument 296 remove_dquot_hash(struct dquot *dquot) remove_dquot_hash() argument 304 struct dquot *dquot; find_dquot() local 314 put_dquot_last(struct dquot *dquot) put_dquot_last() argument 320 put_releasing_dquots(struct dquot *dquot) put_releasing_dquots() argument 326 remove_free_dquot(struct dquot *dquot) remove_free_dquot() argument 337 put_inuse(struct dquot *dquot) put_inuse() argument 345 remove_inuse(struct dquot *dquot) remove_inuse() argument 354 wait_on_dquot(struct dquot *dquot) wait_on_dquot() argument 360 dquot_active(struct dquot *dquot) dquot_active() argument 365 dquot_dirty(struct dquot *dquot) dquot_dirty() argument 370 mark_dquot_dirty(struct dquot *dquot) mark_dquot_dirty() argument 376 dquot_mark_dquot_dirty(struct dquot *dquot) dquot_mark_dquot_dirty() argument 405 struct dquot *dquot; mark_all_dquot_dirty() local 419 dqput_all(struct dquot **dquot) dqput_all() argument 427 clear_dquot_dirty(struct dquot *dquot) clear_dquot_dirty() argument 454 dquot_acquire(struct dquot *dquot) dquot_acquire() argument 501 dquot_commit(struct dquot *dquot) dquot_commit() argument 527 dquot_release(struct dquot *dquot) dquot_release() argument 556 dquot_destroy(struct dquot *dquot) dquot_destroy() argument 562 do_destroy_dquot(struct dquot *dquot) do_destroy_dquot() argument 575 struct dquot *dquot, *tmp; invalidate_dquots() local 628 dquot_scan_active(struct super_block *sb, int (*fn)(struct dquot *dquot, unsigned long priv), unsigned long priv) dquot_scan_active() argument 632 struct dquot *dquot, *old_dquot = NULL; dquot_scan_active() local 670 dquot_write_dquot(struct dquot *dquot) dquot_write_dquot() argument 686 struct dquot *dquot; dquot_writeback_dquots() local 784 struct dquot *dquot; dqcache_shrink_scan() local 819 struct dquot *dquot; quota_release_workfn() local 859 dqput(struct dquot *dquot) dqput() argument 905 struct dquot *dquot; get_empty_dquot() local 935 struct dquot *dquot, *empty = NULL; dqget() local 1107 struct dquot *dquot = srcu_dereference_check( remove_dquot_ref() local 1139 dquot_free_reserved_space(struct dquot *dquot, qsize_t number) dquot_free_reserved_space() argument 1153 dquot_decr_inodes(struct dquot *dquot, qsize_t number) dquot_decr_inodes() argument 1165 dquot_decr_space(struct dquot *dquot, qsize_t number) dquot_decr_space() argument 1184 warning_issued(struct dquot *dquot, const int warntype) warning_issued() argument 1262 prepare_warning(struct dquot_warn *warn, struct dquot *dquot, int warntype) prepare_warning() argument 1292 ignore_hardlimit(struct dquot *dquot) ignore_hardlimit() argument 1301 dquot_add_inodes(struct dquot *dquot, qsize_t inodes, struct dquot_warn *warn) dquot_add_inodes() argument 1346 dquot_add_space(struct dquot *dquot, qsize_t space, qsize_t rsv_space, unsigned int flags, struct dquot_warn *warn) dquot_add_space() argument 1414 info_idq_free(struct dquot *dquot, qsize_t inodes) info_idq_free() argument 1432 info_bdq_free(struct dquot *dquot, qsize_t space) info_bdq_free() argument 1484 struct dquot *dquot; __dquot_initialize() local 1552 struct dquot *dquot = srcu_dereference_check( __dquot_initialize() local 1697 struct dquot *dquot; __dquot_alloc_space() local 1767 struct dquot *dquot; dquot_alloc_inode() local 1812 struct dquot *dquot; dquot_claim_space_nodirty() local 1854 struct dquot *dquot; dquot_reclaim_space_nodirty() local 1898 struct dquot *dquot; __dquot_free_space() local 1955 struct dquot *dquot; dquot_free_inode() local 2137 struct dquot *dquot; dquot_transfer() local 2674 do_get_dqblk(struct dquot *dquot, struct qc_dqblk *di) do_get_dqblk() argument 2694 struct dquot *dquot; dquot_get_dqblk() local 2709 struct dquot *dquot; dquot_get_next_dqblk() local 2733 do_set_dqblk(struct dquot *dquot, struct qc_dqblk *di) do_set_dqblk() argument 2827 struct dquot *dquot; dquot_set_dqblk() local [all...] |
H A D | quota_tree.c | 252 /* Find space for dquot */ 254 struct dquot *dquot, int *err) in find_free_dqentry() 286 mark_info_dirty(dquot->dq_sb, dquot->dq_id.type); in find_free_dqentry() 292 quota_error(dquot->dq_sb, "Can't remove block (%u) " in find_free_dqentry() 307 quota_error(dquot->dq_sb, "Data block full but it shouldn't"); in find_free_dqentry() 314 quota_error(dquot->dq_sb, "Can't write quota data block %u", in find_free_dqentry() 318 dquot->dq_off = ((loff_t)blk << info->dqi_blocksize_bits) + in find_free_dqentry() 329 static int do_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquo argument 253 find_free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, int *err) find_free_dqentry() argument 390 dq_insert_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot) dq_insert_tree() argument 408 qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_write_dquot() argument 448 free_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk) free_dqentry() argument 513 remove_tree(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint *blk, int depth) remove_tree() argument 566 qtree_delete_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_delete_dquot() argument 577 find_block_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk) find_block_dqentry() argument 615 find_tree_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot, uint blk, int depth) find_tree_dqentry() argument 649 find_dqentry(struct qtree_mem_dqinfo *info, struct dquot *dquot) find_dqentry() argument 655 qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_read_dquot() argument 719 qtree_release_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot) qtree_release_dquot() argument [all...] |
H A D | quota_v2.c | 25 static void v2r0_mem2diskdqb(void *dp, struct dquot *dquot); 26 static void v2r0_disk2memdqb(struct dquot *dquot, void *dp); 27 static int v2r0_is_id(void *dp, struct dquot *dquot); 28 static void v2r1_mem2diskdqb(void *dp, struct dquot *dquot); 29 static void v2r1_disk2memdqb(struct dquot *dquot, voi 220 v2r0_disk2memdqb(struct dquot *dquot, void *dp) v2r0_disk2memdqb() argument 240 v2r0_mem2diskdqb(void *dp, struct dquot *dquot) v2r0_mem2diskdqb() argument 260 v2r0_is_id(void *dp, struct dquot *dquot) v2r0_is_id() argument 273 v2r1_disk2memdqb(struct dquot *dquot, void *dp) v2r1_disk2memdqb() argument 293 v2r1_mem2diskdqb(void *dp, struct dquot *dquot) v2r1_mem2diskdqb() argument 314 v2r1_is_id(void *dp, struct dquot *dquot) v2r1_is_id() argument 327 v2_read_dquot(struct dquot *dquot) v2_read_dquot() argument 340 v2_write_dquot(struct dquot *dquot) v2_write_dquot() argument 368 v2_release_dquot(struct dquot *dquot) v2_release_dquot() argument [all...] |
H A D | quota_v1.c | 56 static int v1_read_dqblk(struct dquot *dquot) in v1_read_dqblk() argument 58 int type = dquot->dq_id.type; in v1_read_dqblk() 60 struct quota_info *dqopt = sb_dqopt(dquot->dq_sb); in v1_read_dqblk() 67 dquot->dq_sb->s_op->quota_read(dquot->dq_sb, type, (char *)&dqblk, in v1_read_dqblk() 69 v1_dqoff(from_kqid(&init_user_ns, dquot->dq_id))); in v1_read_dqblk() 71 v1_disk2mem_dqblk(&dquot->dq_dqb, &dqblk); in v1_read_dqblk() 72 if (dquot->dq_dqb.dqb_bhardlimit == 0 && in v1_read_dqblk() 73 dquot in v1_read_dqblk() 82 v1_commit_dqblk(struct dquot *dquot) v1_commit_dqblk() argument [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | shmem_quota.c | 3 * In memory quota format relies on quota infrastructure to store dquot 5 * with persistent storage can load quota information into dquot from the 6 * storage on-demand and hence quota dquot shrinker can free any dquot 162 * Load dquot with limits from existing entry, or create the new entry if 165 static int shmem_acquire_dquot(struct dquot *dquot) in shmem_acquire_dquot() argument 167 struct mem_dqinfo *info = sb_dqinfo(dquot->dq_sb, dquot->dq_id.type); in shmem_acquire_dquot() 169 struct shmem_sb_info *sbinfo = dquot in shmem_acquire_dquot() 236 shmem_is_empty_dquot(struct dquot *dquot) shmem_is_empty_dquot() argument 264 shmem_release_dquot(struct dquot *dquot) shmem_release_dquot() argument 318 shmem_mark_dquot_dirty(struct dquot *dquot) shmem_mark_dquot_dirty() argument [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | quota_global.c | 38 * by dqio_sem or dquot->dq_lock. 52 * Acquire dquot for the first time: 58 * Release last reference to dquot: 71 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) in ocfs2_global_disk2memdqb() argument 74 struct mem_dqblk *m = &dquot->dq_dqb; in ocfs2_global_disk2memdqb() 77 if (!test_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 81 if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 83 if (!test_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 87 if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot in ocfs2_global_disk2memdqb() 96 ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot) ocfs2_global_mem2diskdqb() argument 114 ocfs2_global_is_id(void *dp, struct dquot *dquot) ocfs2_global_is_id() argument 484 __ocfs2_sync_dquot(struct dquot *dquot, int freeing) __ocfs2_sync_dquot() argument 597 ocfs2_sync_dquot_helper(struct dquot *dquot, unsigned long type) ocfs2_sync_dquot_helper() argument 660 ocfs2_write_dquot(struct dquot *dquot) ocfs2_write_dquot() argument 718 ocfs2_release_dquot(struct dquot *dquot) ocfs2_release_dquot() argument 792 ocfs2_acquire_dquot(struct dquot *dquot) ocfs2_acquire_dquot() argument 908 ocfs2_mark_dquot_dirty(struct dquot *dquot) ocfs2_mark_dquot_dirty() argument 995 struct ocfs2_dquot *dquot = ocfs2_alloc_dquot() local 1003 ocfs2_destroy_dquot(struct dquot *dquot) ocfs2_destroy_dquot() argument [all...] |
H A D | quota.h | 28 struct dquot dq_dquot; /* Generic VFS dquot */ 31 struct ocfs2_quota_chunk *dq_chunk; /* Chunk dquot is in */ 72 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument 74 return container_of(dquot, struct ocfs2_dquot, dq_dquot); in OCFS2_DQUOT() 100 int ocfs2_global_read_dquot(struct dquot *dquot); 101 int __ocfs2_sync_dquot(struct dquot *dquot, in 102 ocfs2_sync_dquot(struct dquot *dquot) ocfs2_sync_dquot() argument 106 ocfs2_global_release_dquot(struct dquot *dquot) ocfs2_global_release_dquot() argument [all...] |
H A D | quota_local.c | 70 /* Offset of the dquot structure in the quota file */ 466 struct dquot *dquot; in ocfs2_recover_local_quota_file() local 498 dquot = dqget(sb, in ocfs2_recover_local_quota_file() 501 if (IS_ERR(dquot)) { in ocfs2_recover_local_quota_file() 502 status = PTR_ERR(dquot); in ocfs2_recover_local_quota_file() 524 spin_lock(&dquot->dq_dqb_lock); in ocfs2_recover_local_quota_file() 530 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file() 531 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file() 532 spin_unlock(&dquot in ocfs2_recover_local_quota_file() 893 ocfs2_local_write_dquot(struct dquot *dquot) ocfs2_local_write_dquot() argument 1216 ocfs2_create_local_dquot(struct dquot *dquot) ocfs2_create_local_dquot() argument 1270 ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot) ocfs2_local_release_dquot() argument [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | quota_global.c | 38 * by dqio_sem or dquot->dq_lock. 52 * Acquire dquot for the first time: 58 * Release last reference to dquot: 71 static void ocfs2_global_disk2memdqb(struct dquot *dquot, void *dp) in ocfs2_global_disk2memdqb() argument 74 struct mem_dqblk *m = &dquot->dq_dqb; in ocfs2_global_disk2memdqb() 77 if (!test_bit(DQ_LASTSET_B + QIF_ILIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 81 if (!test_bit(DQ_LASTSET_B + QIF_INODES_B, &dquot->dq_flags)) in ocfs2_global_disk2memdqb() 83 if (!test_bit(DQ_LASTSET_B + QIF_BLIMITS_B, &dquot->dq_flags)) { in ocfs2_global_disk2memdqb() 87 if (!test_bit(DQ_LASTSET_B + QIF_SPACE_B, &dquot in ocfs2_global_disk2memdqb() 96 ocfs2_global_mem2diskdqb(void *dp, struct dquot *dquot) ocfs2_global_mem2diskdqb() argument 114 ocfs2_global_is_id(void *dp, struct dquot *dquot) ocfs2_global_is_id() argument 484 __ocfs2_sync_dquot(struct dquot *dquot, int freeing) __ocfs2_sync_dquot() argument 597 ocfs2_sync_dquot_helper(struct dquot *dquot, unsigned long type) ocfs2_sync_dquot_helper() argument 660 ocfs2_write_dquot(struct dquot *dquot) ocfs2_write_dquot() argument 718 ocfs2_release_dquot(struct dquot *dquot) ocfs2_release_dquot() argument 792 ocfs2_acquire_dquot(struct dquot *dquot) ocfs2_acquire_dquot() argument 908 ocfs2_mark_dquot_dirty(struct dquot *dquot) ocfs2_mark_dquot_dirty() argument 995 struct ocfs2_dquot *dquot = ocfs2_alloc_dquot() local 1003 ocfs2_destroy_dquot(struct dquot *dquot) ocfs2_destroy_dquot() argument [all...] |
H A D | quota.h | 28 struct dquot dq_dquot; /* Generic VFS dquot */ 31 struct ocfs2_quota_chunk *dq_chunk; /* Chunk dquot is in */ 72 static inline struct ocfs2_dquot *OCFS2_DQUOT(struct dquot *dquot) in OCFS2_DQUOT() argument 74 return container_of(dquot, struct ocfs2_dquot, dq_dquot); in OCFS2_DQUOT() 100 int ocfs2_global_read_dquot(struct dquot *dquot); 101 int __ocfs2_sync_dquot(struct dquot *dquot, in 102 ocfs2_sync_dquot(struct dquot *dquot) ocfs2_sync_dquot() argument 106 ocfs2_global_release_dquot(struct dquot *dquot) ocfs2_global_release_dquot() argument [all...] |
H A D | quota_local.c | 70 /* Offset of the dquot structure in the quota file */ 466 struct dquot *dquot; in ocfs2_recover_local_quota_file() local 498 dquot = dqget(sb, in ocfs2_recover_local_quota_file() 501 if (IS_ERR(dquot)) { in ocfs2_recover_local_quota_file() 502 status = PTR_ERR(dquot); in ocfs2_recover_local_quota_file() 524 spin_lock(&dquot->dq_dqb_lock); in ocfs2_recover_local_quota_file() 530 dquot->dq_dqb.dqb_curspace += spacechange; in ocfs2_recover_local_quota_file() 531 dquot->dq_dqb.dqb_curinodes += inodechange; in ocfs2_recover_local_quota_file() 532 spin_unlock(&dquot in ocfs2_recover_local_quota_file() 890 ocfs2_local_write_dquot(struct dquot *dquot) ocfs2_local_write_dquot() argument 1213 ocfs2_create_local_dquot(struct dquot *dquot) ocfs2_create_local_dquot() argument 1267 ocfs2_local_release_dquot(handle_t *handle, struct dquot *dquot) ocfs2_local_release_dquot() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | dqblk_qtree.h | 18 struct dquot; 23 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); /* Convert given entry from in memory format to disk one */ 24 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); /* Convert given entry from disk format to in memory one */ 25 int (*is_id)(void *disk, struct dquot *dquot); /* Is this structure for given id? */ 42 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 43 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquo [all...] |
H A D | quotaops.h | 45 struct dquot *dqget(struct super_block *sb, struct kqid qid); 46 static inline struct dquot *dqgrab(struct dquot *dquot) in dqgrab() argument 48 /* Make sure someone else has active reference to dquot */ in dqgrab() 49 WARN_ON_ONCE(!atomic_read(&dquot->dq_count)); in dqgrab() 50 WARN_ON_ONCE(!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)); in dqgrab() 51 atomic_inc(&dquot->dq_count); in dqgrab() 52 return dquot; in dqgrab() 55 static inline bool dquot_is_busy(struct dquot *dquo argument [all...] |
H A D | quota.h | 282 #define DQ_MOD_B 0 /* dquot modified since read */ 286 #define DQ_READ_B 4 /* dquot was read into memory */ 287 #define DQ_ACTIVE_B 5 /* dquot is active (dquot_release not called) */ 288 #define DQ_RELEASING_B 6 /* dquot is in releasing_dquots list waiting 293 * and the quota format handling dquot can\ 296 struct dquot { struct 301 struct mutex dq_lock; /* dquot IO lock */ 306 loff_t dq_off; /* Offset of dquot on disk [dq_lock, stable once set] */ 317 int (*read_dqblk)(struct dquot *dquot); /* Rea [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | dqblk_qtree.h | 18 struct dquot; 23 void (*mem2disk_dqblk)(void *disk, struct dquot *dquot); /* Convert given entry from in memory format to disk one */ 24 void (*disk2mem_dqblk)(struct dquot *dquot, void *disk); /* Convert given entry from disk format to in memory one */ 25 int (*is_id)(void *disk, struct dquot *dquot); /* Is this structure for given id? */ 42 int qtree_write_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquot); 43 int qtree_read_dquot(struct qtree_mem_dqinfo *info, struct dquot *dquo [all...] |
H A D | quotaops.h | 46 struct dquot *dqget(struct super_block *sb, struct kqid qid); 47 static inline struct dquot *dqgrab(struct dquot *dquot) in dqgrab() argument 49 /* Make sure someone else has active reference to dquot */ in dqgrab() 50 WARN_ON_ONCE(!atomic_read(&dquot->dq_count)); in dqgrab() 51 WARN_ON_ONCE(!test_bit(DQ_ACTIVE_B, &dquot->dq_flags)); in dqgrab() 52 atomic_inc(&dquot->dq_count); in dqgrab() 53 return dquot; in dqgrab() 56 static inline bool dquot_is_busy(struct dquot *dquo argument [all...] |
H A D | quota.h | 282 #define DQ_MOD_B 0 /* dquot modified since read */ 286 #define DQ_READ_B 4 /* dquot was read into memory */ 287 #define DQ_ACTIVE_B 5 /* dquot is active (dquot_release not called) */ 288 #define DQ_RELEASING_B 6 /* dquot is in releasing_dquots list waiting 293 * and the quota format handling dquot can\ 296 struct dquot { struct 301 struct mutex dq_lock; /* dquot IO lock */ 306 loff_t dq_off; /* Offset of dquot on disk [dq_lock, stable once set] */ 317 int (*read_dqblk)(struct dquot *dquot); /* Rea [all...] |
/kernel/linux/linux-5.10/fs/reiserfs/ |
H A D | super.c | 805 static struct dquot **reiserfs_get_dquots(struct inode *inode) in reiserfs_get_dquots() 834 static int reiserfs_write_dquot(struct dquot *); 835 static int reiserfs_acquire_dquot(struct dquot *); 836 static int reiserfs_release_dquot(struct dquot *); 837 static int reiserfs_mark_dquot_dirty(struct dquot *); 2272 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument 2278 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot() 2280 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot() 2281 REISERFS_QUOTA_TRANS_BLOCKS(dquot in reiserfs_write_dquot() 2295 reiserfs_acquire_dquot(struct dquot *dquot) reiserfs_acquire_dquot() argument 2318 reiserfs_release_dquot(struct dquot *dquot) reiserfs_release_dquot() argument 2343 reiserfs_mark_dquot_dirty(struct dquot *dquot) reiserfs_mark_dquot_dirty() argument [all...] |
/kernel/linux/linux-6.6/fs/reiserfs/ |
H A D | super.c | 805 static struct dquot __rcu **reiserfs_get_dquots(struct inode *inode) in reiserfs_get_dquots() 834 static int reiserfs_write_dquot(struct dquot *); 835 static int reiserfs_acquire_dquot(struct dquot *); 836 static int reiserfs_release_dquot(struct dquot *); 837 static int reiserfs_mark_dquot_dirty(struct dquot *); 2268 static int reiserfs_write_dquot(struct dquot *dquot) in reiserfs_write_dquot() argument 2274 reiserfs_write_lock(dquot->dq_sb); in reiserfs_write_dquot() 2276 journal_begin(&th, dquot->dq_sb, in reiserfs_write_dquot() 2277 REISERFS_QUOTA_TRANS_BLOCKS(dquot in reiserfs_write_dquot() 2291 reiserfs_acquire_dquot(struct dquot *dquot) reiserfs_acquire_dquot() argument 2314 reiserfs_release_dquot(struct dquot *dquot) reiserfs_release_dquot() argument 2339 reiserfs_mark_dquot_dirty(struct dquot *dquot) reiserfs_mark_dquot_dirty() argument [all...] |
/kernel/linux/linux-5.10/fs/f2fs/ |
H A D | super.c | 1437 struct dquot *dquot; in f2fs_statfs_project() local 1442 dquot = dqget(sb, qid); in f2fs_statfs_project() 1443 if (IS_ERR(dquot)) in f2fs_statfs_project() 1444 return PTR_ERR(dquot); in f2fs_statfs_project() 1445 spin_lock(&dquot->dq_dqb_lock); in f2fs_statfs_project() 1447 limit = min_not_zero(dquot->dq_dqb.dqb_bsoftlimit, in f2fs_statfs_project() 1448 dquot->dq_dqb.dqb_bhardlimit); in f2fs_statfs_project() 1453 curblock = (dquot->dq_dqb.dqb_curspace + in f2fs_statfs_project() 1454 dquot in f2fs_statfs_project() 2463 f2fs_dquot_commit(struct dquot *dquot) f2fs_dquot_commit() argument 2476 f2fs_dquot_acquire(struct dquot *dquot) f2fs_dquot_acquire() argument 2489 f2fs_dquot_release(struct dquot *dquot) f2fs_dquot_release() argument 2499 f2fs_dquot_mark_dquot_dirty(struct dquot *dquot) f2fs_dquot_mark_dquot_dirty() argument [all...] |
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | super.c | 62 [FAULT_DQUOT_INIT] = "dquot initialize", 1790 struct dquot *dquot; in f2fs_statfs_project() local 1795 dquot = dqget(sb, qid); in f2fs_statfs_project() 1796 if (IS_ERR(dquot)) in f2fs_statfs_project() 1797 return PTR_ERR(dquot); in f2fs_statfs_project() 1798 spin_lock(&dquot->dq_dqb_lock); in f2fs_statfs_project() 1800 limit = min_not_zero(dquot->dq_dqb.dqb_bsoftlimit, in f2fs_statfs_project() 1801 dquot->dq_dqb.dqb_bhardlimit); in f2fs_statfs_project() 1806 curblock = (dquot in f2fs_statfs_project() 3082 f2fs_dquot_commit(struct dquot *dquot) f2fs_dquot_commit() argument 3095 f2fs_dquot_acquire(struct dquot *dquot) f2fs_dquot_acquire() argument 3108 f2fs_dquot_release(struct dquot *dquot) f2fs_dquot_release() argument 3118 f2fs_dquot_mark_dquot_dirty(struct dquot *dquot) f2fs_dquot_mark_dquot_dirty() argument [all...] |