Lines Matching refs:la
275 struct ocfs2_local_alloc *la; in ocfs2_load_local_alloc() local
306 la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_load_local_alloc()
316 if ((la->la_size == 0) || in ocfs2_load_local_alloc()
317 (le16_to_cpu(la->la_size) > ocfs2_local_alloc_size(inode->i_sb))) { in ocfs2_load_local_alloc()
319 le16_to_cpu(la->la_size)); in ocfs2_load_local_alloc()
332 || la->la_bm_off) { in ocfs2_load_local_alloc()
724 struct ocfs2_local_alloc *la; in ocfs2_claim_local_alloc_bits() local
730 la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_claim_local_alloc_bits()
741 bitmap = la->la_bitmap; in ocfs2_claim_local_alloc_bits()
742 *bit_off = le32_to_cpu(la->la_bm_off) + start; in ocfs2_claim_local_alloc_bits()
780 struct ocfs2_local_alloc *la; in ocfs2_free_local_alloc_bits() local
786 la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_free_local_alloc_bits()
788 bitmap = la->la_bitmap; in ocfs2_free_local_alloc_bits()
789 start = bit_off - le32_to_cpu(la->la_bm_off); in ocfs2_free_local_alloc_bits()
814 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_local_alloc_count_bits() local
816 count = memweight(la->la_bitmap, le16_to_cpu(la->la_size)); in ocfs2_local_alloc_count_bits()
912 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_clear_local_alloc() local
917 la->la_bm_off = 0; in ocfs2_clear_local_alloc()
918 for(i = 0; i < le16_to_cpu(la->la_size); i++) in ocfs2_clear_local_alloc()
919 la->la_bitmap[i] = 0; in ocfs2_clear_local_alloc()
958 struct ocfs2_local_alloc *la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_sync_local_to_main() local
974 le32_to_cpu(la->la_bm_off)); in ocfs2_sync_local_to_main()
975 bitmap = la->la_bitmap; in ocfs2_sync_local_to_main()
1153 struct ocfs2_local_alloc *la; in ocfs2_local_alloc_new_window() local
1156 la = OCFS2_LOCAL_ALLOC(alloc); in ocfs2_local_alloc_new_window()
1209 la->la_bm_off = cpu_to_le32(cluster_off); in ocfs2_local_alloc_new_window()
1217 le16_to_cpu(la->la_size)); in ocfs2_local_alloc_new_window()