Lines Matching refs:l_next_free_rec
775 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) {
974 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec);
1083 i = le16_to_cpu(el->l_next_free_rec) - 1;
1126 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1];
1258 eb_el->l_next_free_rec = cpu_to_le16(1);
1307 i = le16_to_cpu(el->l_next_free_rec);
1311 le16_add_cpu(&el->l_next_free_rec, 1);
1394 eb_el->l_next_free_rec = root_el->l_next_free_rec;
1395 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++)
1414 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++)
1416 root_el->l_next_free_rec = cpu_to_le16(1);
1466 if (le16_to_cpu(el->l_next_free_rec) == 0) {
1472 i = le16_to_cpu(el->l_next_free_rec) - 1;
1493 if (le16_to_cpu(el->l_next_free_rec) <
1504 if (!lowest_bh && (el->l_next_free_rec == el->l_count))
1597 int next_free = le16_to_cpu(el->l_next_free_rec);
1617 next_free = le16_to_cpu(el->l_next_free_rec);
1623 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty);
1679 el->l_next_free_rec = cpu_to_le16(next_free);
1683 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count));
1691 int size, num_recs = le16_to_cpu(el->l_next_free_rec);
1701 el->l_next_free_rec = cpu_to_le16(num_recs);
1708 * l_next_free_rec may be updated.
1714 int next_free = le16_to_cpu(el->l_next_free_rec);
1724 mlog_bug_on_msg(el->l_count == el->l_next_free_rec,
1733 le16_add_cpu(&el->l_next_free_rec, 1);
1801 if (le16_to_cpu(el->l_next_free_rec) == 0) {
1811 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) {
1846 if (le16_to_cpu(el->l_next_free_rec) >
1852 le16_to_cpu(el->l_next_free_rec),
1973 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1);
2009 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) {
2018 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1));
2071 idx = le16_to_cpu(left_el->l_next_free_rec) - 1;
2123 if (left_el->l_next_free_rec != left_el->l_count) {
2128 le16_to_cpu(left_el->l_next_free_rec));
2169 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails "
2179 i = le16_to_cpu(left_el->l_next_free_rec) - 1;
2190 le16_add_cpu(&left_el->l_next_free_rec, -1);
2193 le16_add_cpu(&left_el->l_next_free_rec, 1);
2232 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) {
2315 next_free = le16_to_cpu(left_el->l_next_free_rec);
2325 int next_free = le16_to_cpu(el->l_next_free_rec);
2544 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0);
2545 idx = le16_to_cpu(el->l_next_free_rec) - 1;
2551 idx = le16_to_cpu(el->l_next_free_rec) - 1;
2582 if (le16_to_cpu(el->l_next_free_rec) > 1) {
2588 le16_to_cpu(el->l_next_free_rec));
2595 el->l_next_free_rec = 0;
2622 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++)
2626 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec));
2629 le16_add_cpu(&root_el->l_next_free_rec, -1);
2682 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) {
2697 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) {
2756 * extent in our leaf (setting l_next_free_rec to
2830 next_free = le16_to_cpu(el->l_next_free_rec);
2831 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) {
3092 el->l_next_free_rec = 0;
3192 if (le16_to_cpu(el->l_next_free_rec) > 1)
3195 if (le16_to_cpu(el->l_next_free_rec) == 0) {
3303 BUG_ON(left_el->l_next_free_rec != left_el->l_count);
3359 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec));
3362 if (index == le16_to_cpu(el->l_next_free_rec) - 1 &&
3363 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) {
3372 next_free = le16_to_cpu(right_el->l_next_free_rec);
3423 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1);
3537 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) !=
3541 le16_to_cpu(left_el->l_next_free_rec) - 1];
3622 le16_to_cpu(el->l_next_free_rec) == 1) {
3898 if (le16_to_cpu(el->l_next_free_rec) == 0 ||
3899 ((le16_to_cpu(el->l_next_free_rec) == 1) &&
3902 el->l_next_free_rec = cpu_to_le16(1);
3910 i = le16_to_cpu(el->l_next_free_rec) - 1;
3916 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >=
3924 le16_to_cpu(el->l_next_free_rec),
3931 le16_add_cpu(&el->l_next_free_rec, 1);
3944 * extent record, or by virtue of an l_next_free_rec < l_count.
3966 next_free = le16_to_cpu(el->l_next_free_rec);
4010 next_free = le16_to_cpu(el->l_next_free_rec);
4388 if (le16_to_cpu(new_el->l_next_free_rec) !=
4393 "Extent block #%llu has an invalid l_next_free_rec of %d. It should have matched the l_count of %d\n",
4395 le16_to_cpu(new_el->l_next_free_rec),
4400 le16_to_cpu(new_el->l_next_free_rec) - 1];
4418 if (index < (le16_to_cpu(el->l_next_free_rec) - 1))
4420 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) &&
4443 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) {
4447 "Extent block #%llu has an invalid l_next_free_rec of %d\n",
4449 le16_to_cpu(new_el->l_next_free_rec));
4488 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) {
4536 if (!el->l_next_free_rec)
4541 if (le16_to_cpu(el->l_next_free_rec) == 1)
4545 i = le16_to_cpu(el->l_next_free_rec) - 1;
4615 le16_to_cpu(el->l_next_free_rec);
4936 if (le16_to_cpu(rightmost_el->l_next_free_rec) ==
5317 if (le16_to_cpu(rightmost_el->l_next_free_rec) ==
5376 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) &&
5411 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) {
5457 next_free = le16_to_cpu(el->l_next_free_rec);
7022 di->id2.i_list.l_next_free_rec = 0;
7268 if (le16_to_cpu(el->l_next_free_rec) == 0) {
7277 i = le16_to_cpu(el->l_next_free_rec) - 1;