Lines Matching refs:l_next_free_rec

773 	for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) {
972 retval = le16_to_cpu(el->l_count) - le16_to_cpu(el->l_next_free_rec);
1081 i = le16_to_cpu(el->l_next_free_rec) - 1;
1124 rec = &el->l_recs[le16_to_cpu(el->l_next_free_rec) - 1];
1256 eb_el->l_next_free_rec = cpu_to_le16(1);
1305 i = le16_to_cpu(el->l_next_free_rec);
1309 le16_add_cpu(&el->l_next_free_rec, 1);
1392 eb_el->l_next_free_rec = root_el->l_next_free_rec;
1393 for (i = 0; i < le16_to_cpu(root_el->l_next_free_rec); i++)
1412 for (i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++)
1414 root_el->l_next_free_rec = cpu_to_le16(1);
1464 if (le16_to_cpu(el->l_next_free_rec) == 0) {
1470 i = le16_to_cpu(el->l_next_free_rec) - 1;
1491 if (le16_to_cpu(el->l_next_free_rec) <
1502 if (!lowest_bh && (el->l_next_free_rec == el->l_count))
1595 int next_free = le16_to_cpu(el->l_next_free_rec);
1615 next_free = le16_to_cpu(el->l_next_free_rec);
1621 BUG_ON(el->l_next_free_rec == el->l_count && !has_empty);
1677 el->l_next_free_rec = cpu_to_le16(next_free);
1681 BUG_ON(le16_to_cpu(el->l_next_free_rec) > le16_to_cpu(el->l_count));
1689 int size, num_recs = le16_to_cpu(el->l_next_free_rec);
1699 el->l_next_free_rec = cpu_to_le16(num_recs);
1706 * l_next_free_rec may be updated.
1712 int next_free = le16_to_cpu(el->l_next_free_rec);
1722 mlog_bug_on_msg(el->l_count == el->l_next_free_rec,
1731 le16_add_cpu(&el->l_next_free_rec, 1);
1799 if (le16_to_cpu(el->l_next_free_rec) == 0) {
1809 for(i = 0; i < le16_to_cpu(el->l_next_free_rec) - 1; i++) {
1844 if (le16_to_cpu(el->l_next_free_rec) >
1850 le16_to_cpu(el->l_next_free_rec),
1971 BUG_ON(le16_to_cpu(right_child_el->l_next_free_rec) <= 1);
2007 for(i = 0; i < le16_to_cpu(root_el->l_next_free_rec) - 1; i++) {
2016 BUG_ON(i >= (le16_to_cpu(root_el->l_next_free_rec) - 1));
2069 idx = le16_to_cpu(left_el->l_next_free_rec) - 1;
2121 if (left_el->l_next_free_rec != left_el->l_count) {
2126 le16_to_cpu(left_el->l_next_free_rec));
2167 mlog_bug_on_msg(!right_el->l_next_free_rec, "Inode %llu: Rotate fails "
2177 i = le16_to_cpu(left_el->l_next_free_rec) - 1;
2188 le16_add_cpu(&left_el->l_next_free_rec, -1);
2191 le16_add_cpu(&left_el->l_next_free_rec, 1);
2230 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) {
2313 next_free = le16_to_cpu(left_el->l_next_free_rec);
2323 int next_free = le16_to_cpu(el->l_next_free_rec);
2542 BUG_ON(le16_to_cpu(el->l_next_free_rec) == 0);
2543 idx = le16_to_cpu(el->l_next_free_rec) - 1;
2549 idx = le16_to_cpu(el->l_next_free_rec) - 1;
2580 if (le16_to_cpu(el->l_next_free_rec) > 1) {
2586 le16_to_cpu(el->l_next_free_rec));
2593 el->l_next_free_rec = 0;
2620 for(i = 1; i < le16_to_cpu(root_el->l_next_free_rec); i++)
2624 BUG_ON(i >= le16_to_cpu(root_el->l_next_free_rec));
2627 le16_add_cpu(&root_el->l_next_free_rec, -1);
2680 if (le16_to_cpu(right_leaf_el->l_next_free_rec) > 1) {
2695 le16_to_cpu(right_leaf_el->l_next_free_rec) == 1) {
2754 * extent in our leaf (setting l_next_free_rec to
2828 next_free = le16_to_cpu(el->l_next_free_rec);
2829 for(j = 0; j < le16_to_cpu(el->l_next_free_rec); j++) {
3090 el->l_next_free_rec = 0;
3190 if (le16_to_cpu(el->l_next_free_rec) > 1)
3193 if (le16_to_cpu(el->l_next_free_rec) == 0) {
3301 BUG_ON(left_el->l_next_free_rec != left_el->l_count);
3357 BUG_ON(index >= le16_to_cpu(el->l_next_free_rec));
3360 if (index == le16_to_cpu(el->l_next_free_rec) - 1 &&
3361 le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count)) {
3370 next_free = le16_to_cpu(right_el->l_next_free_rec);
3421 BUG_ON(index == le16_to_cpu(el->l_next_free_rec) - 1);
3535 BUG_ON(le16_to_cpu(left_el->l_next_free_rec) !=
3539 le16_to_cpu(left_el->l_next_free_rec) - 1];
3620 le16_to_cpu(el->l_next_free_rec) == 1) {
3896 if (le16_to_cpu(el->l_next_free_rec) == 0 ||
3897 ((le16_to_cpu(el->l_next_free_rec) == 1) &&
3900 el->l_next_free_rec = cpu_to_le16(1);
3908 i = le16_to_cpu(el->l_next_free_rec) - 1;
3914 mlog_bug_on_msg(le16_to_cpu(el->l_next_free_rec) >=
3922 le16_to_cpu(el->l_next_free_rec),
3929 le16_add_cpu(&el->l_next_free_rec, 1);
3942 * extent record, or by virtue of an l_next_free_rec < l_count.
3964 next_free = le16_to_cpu(el->l_next_free_rec);
4008 next_free = le16_to_cpu(el->l_next_free_rec);
4386 if (le16_to_cpu(new_el->l_next_free_rec) !=
4391 "Extent block #%llu has an invalid l_next_free_rec of %d. It should have matched the l_count of %d\n",
4393 le16_to_cpu(new_el->l_next_free_rec),
4398 le16_to_cpu(new_el->l_next_free_rec) - 1];
4416 if (index < (le16_to_cpu(el->l_next_free_rec) - 1))
4418 else if (le16_to_cpu(el->l_next_free_rec) == le16_to_cpu(el->l_count) &&
4441 if (le16_to_cpu(new_el->l_next_free_rec) <= 1) {
4445 "Extent block #%llu has an invalid l_next_free_rec of %d\n",
4447 le16_to_cpu(new_el->l_next_free_rec));
4486 for(i = 0; i < le16_to_cpu(el->l_next_free_rec); i++) {
4534 if (!el->l_next_free_rec)
4539 if (le16_to_cpu(el->l_next_free_rec) == 1)
4543 i = le16_to_cpu(el->l_next_free_rec) - 1;
4613 le16_to_cpu(el->l_next_free_rec);
4934 if (le16_to_cpu(rightmost_el->l_next_free_rec) ==
5315 if (le16_to_cpu(rightmost_el->l_next_free_rec) ==
5374 if (index == (le16_to_cpu(el->l_next_free_rec) - 1) &&
5409 if (left_cpos && le16_to_cpu(el->l_next_free_rec) > 1) {
5455 next_free = le16_to_cpu(el->l_next_free_rec);
7027 di->id2.i_list.l_next_free_rec = 0;
7273 if (le16_to_cpu(el->l_next_free_rec) == 0) {
7282 i = le16_to_cpu(el->l_next_free_rec) - 1;