Lines Matching refs:dchunk

295 				    struct ocfs2_local_disk_chunk *dchunk,  in ocfs2_add_recovery_chunk()  argument
310 memcpy(rc->rc_bitmap, dchunk->dqc_bitmap, in ocfs2_add_recovery_chunk()
345 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_recovery_load_quota() local
358 dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; in ocfs2_recovery_load_quota()
359 if (le32_to_cpu(dchunk->dqc_free) < ol_chunk_entries(sb)) in ocfs2_recovery_load_quota()
360 status = ocfs2_add_recovery_chunk(sb, dchunk, i, head); in ocfs2_recovery_load_quota()
464 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_recover_local_quota_file() local
487 dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; in ocfs2_recover_local_quota_file()
552 WARN_ON(!ocfs2_test_bit_unaligned(bit, dchunk->dqc_bitmap)); in ocfs2_recover_local_quota_file()
553 ocfs2_clear_bit_unaligned(bit, dchunk->dqc_bitmap); in ocfs2_recover_local_quota_file()
554 le32_add_cpu(&dchunk->dqc_free, 1); in ocfs2_recover_local_quota_file()
819 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_local_free_info() local
827 dchunk = (struct ocfs2_local_disk_chunk *) in ocfs2_local_free_info()
837 if (le32_to_cpu(dchunk->dqc_free) != len) { in ocfs2_local_free_info()
929 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_find_free_entry() local
933 dchunk = (struct ocfs2_local_disk_chunk *) in ocfs2_find_free_entry()
935 if (le32_to_cpu(dchunk->dqc_free) > 0) { in ocfs2_find_free_entry()
951 found = ocfs2_find_next_zero_bit_unaligned(dchunk->dqc_bitmap, len, 0); in ocfs2_find_free_entry()
956 le32_to_cpu(dchunk->dqc_free), type); in ocfs2_find_free_entry()
973 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_local_quota_add_chunk() local
1023 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in ocfs2_local_quota_add_chunk()
1032 dchunk->dqc_free = cpu_to_le32(ol_quota_entries_per_block(sb)); in ocfs2_local_quota_add_chunk()
1033 memset(dchunk->dqc_bitmap, 0, in ocfs2_local_quota_add_chunk()
1104 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_extend_local_quota_file() local
1182 dchunk = (struct ocfs2_local_disk_chunk *)chunk->qc_headerbh->b_data; in ocfs2_extend_local_quota_file()
1184 le32_add_cpu(&dchunk->dqc_free, ol_quota_entries_per_block(sb)); in ocfs2_extend_local_quota_file()
1212 struct ocfs2_local_disk_chunk *dchunk; in olq_alloc_dquot() local
1214 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in olq_alloc_dquot()
1215 ocfs2_set_bit_unaligned(*offset, dchunk->dqc_bitmap); in olq_alloc_dquot()
1216 le32_add_cpu(&dchunk->dqc_free, -1); in olq_alloc_dquot()
1284 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_local_release_dquot() local
1296 dchunk = (struct ocfs2_local_disk_chunk *) in ocfs2_local_release_dquot()
1300 ocfs2_clear_bit_unaligned(offset, dchunk->dqc_bitmap); in ocfs2_local_release_dquot()
1301 le32_add_cpu(&dchunk->dqc_free, 1); in ocfs2_local_release_dquot()