Lines Matching defs:first

203  * ac_g_ex. Each group is first checked based on the criteria whether it
217 * Both the prealloc space are getting populated as above. So for the first
552 int first, int count)
561 if (!mb_test_bit(first + i, e4b->bd_info->bb_bitmap)) {
565 blocknr += EXT4_C2B(EXT4_SB(sb), first + i);
571 first + i);
575 mb_clear_bit(first + i, e4b->bd_info->bb_bitmap);
579 static void mb_mark_used_double(struct ext4_buddy *e4b, int first, int count)
587 BUG_ON(mb_test_bit(first + i, e4b->bd_info->bb_bitmap));
588 mb_set_bit(first + i, e4b->bd_info->bb_bitmap);
641 struct ext4_buddy *e4b, int first, int count)
646 int first, int count)
780 * Divide blocks started from @first with length @len into
786 void *buddy, ext4_grpblk_t first, ext4_grpblk_t len,
801 max = ffs(first | border) - 1;
813 mb_clear_bit(first >> min,
817 first += chunk;
1098 * files makes group > ngroups possible on first loop.
1187 ext4_grpblk_t first;
1199 first = i;
1201 len = i - first;
1204 ext4_mb_mark_free_simple(sb, buddy, first, len, grp);
1776 * will return first found zero bit if any, -1 otherwise
1834 static void mb_buddy_mark_free(struct ext4_buddy *e4b, int first, int last)
1843 /* Bits in range [first; last] are known to be set since
1845 * (first; last) will stay set because they form buddies on
1872 if (first & 1)
1873 e4b->bd_info->bb_counters[order] += mb_buddy_adjust_border(&first, buddy, -1);
1876 if (first > last)
1882 mb_clear_bits(buddy, first, last - first + 1);
1883 e4b->bd_info->bb_counters[order - 1] += last - first + 1;
1886 first >>= 1;
1893 int first, int count)
1898 int last = first + count - 1;
1910 mb_free_blocks_double(inode, e4b, first, count);
1915 if (first != 0)
1916 left_is_free = !mb_test_bit(first - 1, e4b->bd_bitmap);
1917 block = mb_test_and_clear_bits(e4b->bd_bitmap, first, count);
1947 if (first < e4b->bd_info->bb_first_free)
1948 e4b->bd_info->bb_first_free = first;
1962 if (first & 1) {
1963 first += !left_is_free;
1971 if (first <= last)
1972 mb_buddy_mark_free(e4b, first >> 1, last >> 1);
2248 * The special case - take what you catch first
2266 * If this is first found extent, just store it in the context
2543 /* find first stripe-aligned block in group */
2597 /* Avoid using the first bg of a flexgroup for data files */
2687 * we never skip the first block group in a flex_bg, since this
2689 * sure we locate metadata blocks in the first block group in
2811 /* first, try the goal */
2851 * aligned, in which case let's do that faster approach first.
2958 * The only thing we can do is just take first
3033 seq_puts(seq, "#group: free frags first ["
3320 * First check if this group is the first of a reserved block.
4457 /* first, let's learn actual file size
4471 /* first, try to predict filesize */
4805 * first, try per-file preallocation by searching the inode pa rbtree.
4856 * the first non deleted adjacent pa. After this step we should have a
5009 /* all form of preallocation discards first load group,
5410 * first, we need to decide discard policy:
5553 /* first, collect all pa's in the inode */
6149 * it tries to use preallocation first, then falls back
6345 /* first free block exent. We need to
6999 * @start: first group block to examine
7089 /* Determine first and last group to examine based on start and end */
7130 * For every group except the first one, we are sure
7131 * that the first cluster to discard will be cluster #0.