Lines Matching defs:allocp
1460 struct cachefs_allocmap *allocp =
1463 if (off >= allocp->am_start_off) {
1465 (allocp->am_start_off + allocp->am_size)) {
1500 struct cachefs_allocmap *allocp, *nallocp;
1502 nallocp = allocp = cmd->md_allocinfo;
1503 allocp++;
1504 for (i = 1; i < cmd->md_allocents; i++, allocp++) {
1506 allocp->am_start_off) {
1507 nallocp->am_size += allocp->am_size;
1511 nallocp->am_start_off = allocp->am_start_off;
1512 nallocp->am_size = allocp->am_size;
1526 struct cachefs_allocmap *allocp;
1543 allocp = cp->c_metadata.md_allocinfo;
1544 for (i = 0; i < cp->c_metadata.md_allocents; i++, allocp++) {
1546 if (off <= (allocp->am_start_off)) {
1548 if (endoff >= allocp->am_start_off) {
1549 tmpendoff = allocp->am_start_off +
1550 allocp->am_size;
1553 allocp->am_size = endoff - off;
1554 allocp->am_start_off = off;
1556 allocp = cp->c_metadata.md_allocinfo;
1557 if (allocp->am_size >= cp->c_size)
1563 off = allocp->am_start_off;
1564 size = allocp->am_size;
1565 allocp->am_size = savesize;
1566 allocp->am_start_off = saveoff;
1570 endoff = allocp->am_start_off + allocp->am_size;
1575 allocp->am_size = endoff - allocp->am_start_off;
1577 allocp = cp->c_metadata.md_allocinfo;
1578 if (allocp->am_size >= cp->c_size)
1582 if (off == (allocp->am_start_off + allocp->am_size)) {
1583 allocp->am_size += size;
1585 allocp = cp->c_metadata.md_allocinfo;
1586 if (allocp->am_size >= cp->c_size)
1603 allocp->am_start_off = off;
1604 allocp->am_size = (u_offset_t)size;
1605 if (allocp->am_size >= cp->c_size)
1738 struct cachefs_allocmap *allocp =
1741 if (allocp->am_start_off > off) {
1742 if ((off + size) > allocp->am_start_off) {
1743 forward_diff = allocp->am_start_off - off;
1757 lastoff = allocp->am_start_off + allocp->am_size;
2829 struct cachefs_allocmap *allocp;
2879 allocp = cp->c_metadata.md_allocinfo;
2880 allocp->am_start_off = 0;
2881 allocp->am_size = length;