Lines Matching refs:buddy
695 void *buddy; in __mb_check_buddy() local
702 buddy = mb_find_buddy(e4b, order, &max); in __mb_check_buddy()
703 MB_CHECK_ASSERT(buddy); in __mb_check_buddy()
706 MB_CHECK_ASSERT(buddy != buddy2); in __mb_check_buddy()
712 if (mb_test_bit(i, buddy)) { in __mb_check_buddy()
737 buddy = mb_find_buddy(e4b, 0, &max); in __mb_check_buddy()
739 if (!mb_test_bit(i, buddy)) { in __mb_check_buddy()
769 MB_CHECK_ASSERT(mb_test_bit(k + i, buddy)); in __mb_check_buddy()
786 void *buddy, ext4_grpblk_t first, ext4_grpblk_t len, in ext4_mb_mark_free_simple() argument
814 buddy + sbi->s_mb_offsets[min]); in ext4_mb_mark_free_simple()
1185 void *buddy, void *bitmap, ext4_group_t group, in ext4_mb_generate_buddy() argument
1208 ext4_mb_mark_free_simple(sb, buddy, first, len, grp); in ext4_mb_generate_buddy()
1243 void *buddy; in mb_regenerate_buddy() local
1245 while ((buddy = mb_find_buddy(e4b, order++, &count))) in mb_regenerate_buddy()
1246 mb_set_bits(buddy, 0, count); in mb_regenerate_buddy()
1845 void *buddy = mb_find_buddy(e4b, order, &max); in mb_buddy_mark_free() local
1847 while (buddy) { in mb_buddy_mark_free()
1880 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&first, buddy, -1); in mb_buddy_mark_free()
1882 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&last, buddy, 1); in mb_buddy_mark_free()
1889 mb_clear_bits(buddy, first, last - first + 1); in mb_buddy_mark_free()
1895 buddy = buddy2; in mb_buddy_mark_free()
1991 void *buddy; in mb_find_extent() local
1996 buddy = mb_find_buddy(e4b, 0, &max); in mb_find_extent()
1997 BUG_ON(buddy == NULL); in mb_find_extent()
1999 if (mb_test_bit(block, buddy)) { in mb_find_extent()
2055 void *buddy; in mb_mark_used() local
2086 buddy = mb_find_buddy(e4b, ord, &max); in mb_mark_used()
2088 mb_set_bit(start >> ord, buddy); in mb_mark_used()
2101 buddy = mb_find_buddy(e4b, ord, &max); in mb_mark_used()
2102 mb_set_bit(start >> ord, buddy); in mb_mark_used()
2403 void *buddy; in ext4_mb_simple_scan_group() local
2413 buddy = mb_find_buddy(e4b, i, &max); in ext4_mb_simple_scan_group()
2414 if (WARN_RATELIMIT(buddy == NULL, in ext4_mb_simple_scan_group()
2418 k = mb_find_next_zero_bit(buddy, max, 0); in ext4_mb_simple_scan_group()