|
@@ -555,16 +555,13 @@ xfs_iext_split_leaf(
|
|
int i;
|
|
int i;
|
|
|
|
|
|
/* for sequential append operations just spill over into the new node */
|
|
/* for sequential append operations just spill over into the new node */
|
|
- if (cur->pos == KEYS_PER_NODE) {
|
|
|
|
|
|
+ if (cur->pos == RECS_PER_LEAF) {
|
|
cur->leaf = new;
|
|
cur->leaf = new;
|
|
cur->pos = 0;
|
|
cur->pos = 0;
|
|
*nr_entries = 0;
|
|
*nr_entries = 0;
|
|
goto done;
|
|
goto done;
|
|
}
|
|
}
|
|
|
|
|
|
- if (nr_keep & 1)
|
|
|
|
- nr_keep++;
|
|
|
|
-
|
|
|
|
for (i = 0; i < nr_move; i++) {
|
|
for (i = 0; i < nr_move; i++) {
|
|
new->recs[i] = leaf->recs[nr_keep + i];
|
|
new->recs[i] = leaf->recs[nr_keep + i];
|
|
xfs_iext_rec_clear(&leaf->recs[nr_keep + i]);
|
|
xfs_iext_rec_clear(&leaf->recs[nr_keep + i]);
|