Lines Matching defs:curp
971 * insert new index [@logical;@ptr] into the block at @curp;
972 * check where to insert: before @curp or after @curp
975 struct ext4_ext_path *curp,
981 err = ext4_ext_get_access(handle, inode, curp);
985 if (unlikely(logical == le32_to_cpu(curp->p_idx->ei_block))) {
988 logical, le32_to_cpu(curp->p_idx->ei_block));
992 if (unlikely(le16_to_cpu(curp->p_hdr->eh_entries)
993 >= le16_to_cpu(curp->p_hdr->eh_max))) {
996 le16_to_cpu(curp->p_hdr->eh_entries),
997 le16_to_cpu(curp->p_hdr->eh_max));
1001 if (logical > le32_to_cpu(curp->p_idx->ei_block)) {
1005 ix = curp->p_idx + 1;
1010 ix = curp->p_idx;
1013 if (unlikely(ix > EXT_MAX_INDEX(curp->p_hdr))) {
1018 len = EXT_LAST_INDEX(curp->p_hdr) - ix + 1;
1029 le16_add_cpu(&curp->p_hdr->eh_entries, 1);
1031 if (unlikely(ix > EXT_LAST_INDEX(curp->p_hdr))) {
1036 err = ext4_ext_dirty(handle, inode, curp);
1405 struct ext4_ext_path *curp;
1412 curp = path + depth;
1413 while (i > 0 && !EXT_HAS_FREE_INDEX(curp)) {
1415 curp--;
1420 if (EXT_HAS_FREE_INDEX(curp)) {