Lines Matching refs:curp
967 struct ext4_ext_path *curp, in ext4_ext_insert_index() argument
973 err = ext4_ext_get_access(handle, inode, curp); in ext4_ext_insert_index()
977 if (unlikely(logical == le32_to_cpu(curp->p_idx->ei_block))) { in ext4_ext_insert_index()
980 logical, le32_to_cpu(curp->p_idx->ei_block)); in ext4_ext_insert_index()
984 if (unlikely(le16_to_cpu(curp->p_hdr->eh_entries) in ext4_ext_insert_index()
985 >= le16_to_cpu(curp->p_hdr->eh_max))) { in ext4_ext_insert_index()
988 le16_to_cpu(curp->p_hdr->eh_entries), in ext4_ext_insert_index()
989 le16_to_cpu(curp->p_hdr->eh_max)); in ext4_ext_insert_index()
993 if (logical > le32_to_cpu(curp->p_idx->ei_block)) { in ext4_ext_insert_index()
997 ix = curp->p_idx + 1; in ext4_ext_insert_index()
1002 ix = curp->p_idx; in ext4_ext_insert_index()
1005 len = EXT_LAST_INDEX(curp->p_hdr) - ix + 1; in ext4_ext_insert_index()
1014 if (unlikely(ix > EXT_MAX_INDEX(curp->p_hdr))) { in ext4_ext_insert_index()
1021 le16_add_cpu(&curp->p_hdr->eh_entries, 1); in ext4_ext_insert_index()
1023 if (unlikely(ix > EXT_LAST_INDEX(curp->p_hdr))) { in ext4_ext_insert_index()
1028 err = ext4_ext_dirty(handle, inode, curp); in ext4_ext_insert_index()
1397 struct ext4_ext_path *curp; in ext4_ext_create_new_leaf() local
1404 curp = path + depth; in ext4_ext_create_new_leaf()
1405 while (i > 0 && !EXT_HAS_FREE_INDEX(curp)) { in ext4_ext_create_new_leaf()
1407 curp--; in ext4_ext_create_new_leaf()
1412 if (EXT_HAS_FREE_INDEX(curp)) { in ext4_ext_create_new_leaf()