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
486 dchunk = (struct ocfs2_local_disk_chunk *)hbh->b_data; in ocfs2_recover_local_quota_file()
550 WARN_ON(!ocfs2_test_bit_unaligned(bit, dchunk->dqc_bitmap)); in ocfs2_recover_local_quota_file()
551 ocfs2_clear_bit_unaligned(bit, dchunk->dqc_bitmap); in ocfs2_recover_local_quota_file()
552 le32_add_cpu(&dchunk->dqc_free, 1); in ocfs2_recover_local_quota_file()
812 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_local_free_info() local
820 dchunk = (struct ocfs2_local_disk_chunk *) in ocfs2_local_free_info()
830 if (le32_to_cpu(dchunk->dqc_free) != len) { in ocfs2_local_free_info()
925 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_find_free_entry() local
929 dchunk = (struct ocfs2_local_disk_chunk *) in ocfs2_find_free_entry()
931 if (le32_to_cpu(dchunk->dqc_free) > 0) { in ocfs2_find_free_entry()
947 found = ocfs2_find_next_zero_bit_unaligned(dchunk->dqc_bitmap, len, 0); in ocfs2_find_free_entry()
952 le32_to_cpu(dchunk->dqc_free), type); in ocfs2_find_free_entry()
969 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_local_quota_add_chunk() local
1019 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in ocfs2_local_quota_add_chunk()
1028 dchunk->dqc_free = cpu_to_le32(ol_quota_entries_per_block(sb)); in ocfs2_local_quota_add_chunk()
1029 memset(dchunk->dqc_bitmap, 0, in ocfs2_local_quota_add_chunk()
1100 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_extend_local_quota_file() local
1178 dchunk = (struct ocfs2_local_disk_chunk *)chunk->qc_headerbh->b_data; in ocfs2_extend_local_quota_file()
1180 le32_add_cpu(&dchunk->dqc_free, ol_quota_entries_per_block(sb)); in ocfs2_extend_local_quota_file()
1208 struct ocfs2_local_disk_chunk *dchunk; in olq_alloc_dquot() local
1210 dchunk = (struct ocfs2_local_disk_chunk *)bh->b_data; in olq_alloc_dquot()
1211 ocfs2_set_bit_unaligned(*offset, dchunk->dqc_bitmap); in olq_alloc_dquot()
1212 le32_add_cpu(&dchunk->dqc_free, -1); in olq_alloc_dquot()
1276 struct ocfs2_local_disk_chunk *dchunk; in ocfs2_local_release_dquot() local
1288 dchunk = (struct ocfs2_local_disk_chunk *) in ocfs2_local_release_dquot()
1292 ocfs2_clear_bit_unaligned(offset, dchunk->dqc_bitmap); in ocfs2_local_release_dquot()
1293 le32_add_cpu(&dchunk->dqc_free, 1); in ocfs2_local_release_dquot()