Lines Matching refs:state

1112 		"Offset 0x%llx, start block 0x%llx, block count 0x%llx state 0x%x",
1418 int i; /* temp state */
1423 uint32_t state = xfs_bmap_fork_to_state(whichfork);
1458 state |= BMAP_LEFT_FILLING;
1460 state |= BMAP_RIGHT_FILLING;
1467 state |= BMAP_LEFT_VALID;
1469 state |= BMAP_LEFT_DELAY;
1472 if ((state & BMAP_LEFT_VALID) && !(state & BMAP_LEFT_DELAY) &&
1477 state |= BMAP_LEFT_CONTIG;
1485 state |= BMAP_RIGHT_VALID;
1487 state |= BMAP_RIGHT_DELAY;
1490 if ((state & BMAP_RIGHT_VALID) && !(state & BMAP_RIGHT_DELAY) &&
1495 ((state & (BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING |
1501 state |= BMAP_RIGHT_CONTIG;
1505 * Switch out based on the FILLING and CONTIG state bits.
1507 switch (state & (BMAP_LEFT_FILLING | BMAP_LEFT_CONTIG |
1517 xfs_iext_remove(bma->ip, &bma->icur, state);
1518 xfs_iext_remove(bma->ip, &bma->icur, state);
1520 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT);
1562 xfs_iext_remove(bma->ip, &bma->icur, state);
1564 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT);
1595 xfs_iext_remove(bma->ip, &bma->icur, state);
1597 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1624 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1664 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1666 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT);
1690 xfs_iext_update_extent(bma->ip, state, &bma->icur, new);
1730 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state);
1767 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1769 xfs_iext_update_extent(bma->ip, state, &bma->icur, &RIGHT);
1777 xfs_iext_update_extent(bma->ip, state, &bma->icur, new);
1815 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state);
1859 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV);
1862 xfs_iext_insert(bma->ip, &bma->icur, &RIGHT, state);
1863 xfs_iext_insert(bma->ip, &bma->icur, &LEFT, state);
1938 ASSERT(state == 0 || da_new < da_old);
1968 int i; /* temp state */
1974 uint32_t state = xfs_bmap_fork_to_state(whichfork);
2006 state |= BMAP_LEFT_FILLING;
2008 state |= BMAP_RIGHT_FILLING;
2015 state |= BMAP_LEFT_VALID;
2017 state |= BMAP_LEFT_DELAY;
2020 if ((state & BMAP_LEFT_VALID) && !(state & BMAP_LEFT_DELAY) &&
2025 state |= BMAP_LEFT_CONTIG;
2033 state |= BMAP_RIGHT_VALID;
2035 state |= BMAP_RIGHT_DELAY;
2038 if ((state & BMAP_RIGHT_VALID) && !(state & BMAP_RIGHT_DELAY) &&
2043 ((state & (BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING |
2049 state |= BMAP_RIGHT_CONTIG;
2052 * Switch out based on the FILLING and CONTIG state bits.
2054 switch (state & (BMAP_LEFT_FILLING | BMAP_LEFT_CONTIG |
2064 xfs_iext_remove(ip, icur, state);
2065 xfs_iext_remove(ip, icur, state);
2067 xfs_iext_update_extent(ip, state, icur, &LEFT);
2117 xfs_iext_remove(ip, icur, state);
2119 xfs_iext_update_extent(ip, state, icur, &LEFT);
2159 xfs_iext_remove(ip, icur, state);
2161 xfs_iext_update_extent(ip, state, icur, &PREV);
2200 xfs_iext_update_extent(ip, state, icur, &PREV);
2231 xfs_iext_update_extent(ip, state, icur, &PREV);
2233 xfs_iext_update_extent(ip, state, icur, &LEFT);
2268 xfs_iext_update_extent(ip, state, icur, &PREV);
2269 xfs_iext_insert(ip, icur, new, state);
2308 xfs_iext_update_extent(ip, state, icur, &PREV);
2310 xfs_iext_update_extent(ip, state, icur, &RIGHT);
2343 xfs_iext_update_extent(ip, state, icur, &PREV);
2345 xfs_iext_insert(ip, icur, new, state);
2394 xfs_iext_update_extent(ip, state, icur, &PREV);
2396 xfs_iext_insert(ip, icur, &r[1], state);
2397 xfs_iext_insert(ip, icur, &r[0], state);
2503 uint32_t state = xfs_bmap_fork_to_state(whichfork);
2513 state |= BMAP_LEFT_VALID;
2515 state |= BMAP_LEFT_DELAY;
2523 state |= BMAP_RIGHT_VALID;
2525 state |= BMAP_RIGHT_DELAY;
2532 if ((state & BMAP_LEFT_VALID) && (state & BMAP_LEFT_DELAY) &&
2535 state |= BMAP_LEFT_CONTIG;
2537 if ((state & BMAP_RIGHT_VALID) && (state & BMAP_RIGHT_DELAY) &&
2540 (!(state & BMAP_LEFT_CONTIG) ||
2543 state |= BMAP_RIGHT_CONTIG;
2548 switch (state & (BMAP_LEFT_CONTIG | BMAP_RIGHT_CONTIG)) {
2566 xfs_iext_remove(ip, icur, state);
2568 xfs_iext_update_extent(ip, state, icur, &left);
2587 xfs_iext_update_extent(ip, state, icur, &left);
2604 xfs_iext_update_extent(ip, state, icur, &right);
2614 xfs_iext_insert(ip, icur, new, state);
2646 int i; /* temp state */
2650 uint32_t state = xfs_bmap_fork_to_state(whichfork);
2662 state |= BMAP_LEFT_VALID;
2664 state |= BMAP_LEFT_DELAY;
2672 state |= BMAP_RIGHT_VALID;
2674 state |= BMAP_RIGHT_DELAY;
2681 if ((state & BMAP_LEFT_VALID) && !(state & BMAP_LEFT_DELAY) &&
2686 state |= BMAP_LEFT_CONTIG;
2688 if ((state & BMAP_RIGHT_VALID) && !(state & BMAP_RIGHT_DELAY) &&
2693 (!(state & BMAP_LEFT_CONTIG) ||
2696 state |= BMAP_RIGHT_CONTIG;
2702 switch (state & (BMAP_LEFT_CONTIG | BMAP_RIGHT_CONTIG)) {
2711 xfs_iext_remove(ip, icur, state);
2713 xfs_iext_update_extent(ip, state, icur, &left);
2757 xfs_iext_update_extent(ip, state, icur, &left);
2787 xfs_iext_update_extent(ip, state, icur, &right);
2812 xfs_iext_insert(ip, icur, new, state);
3546 * original non-aligned state so the caller can proceed on allocation
3953 * state of the inode fork on return. If necessary, the caller can use lastx to
4210 * Modify (by adding) the state flag, if writing.
4309 * extent state if necessary. Details behaviour is controlled by the flags
4813 uint32_t state = xfs_bmap_fork_to_state(whichfork);
4848 state |= BMAP_LEFT_FILLING;
4850 state |= BMAP_RIGHT_FILLING;
4852 switch (state & (BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING)) {
4857 xfs_iext_remove(ip, icur, state);
4869 xfs_iext_update_extent(ip, state, icur, got);
4879 xfs_iext_update_extent(ip, state, icur, got);
4907 xfs_iext_update_extent(ip, state, icur, got);
4909 xfs_iext_insert(ip, icur, &new, state);
4938 uint32_t state = BMAP_COWFORK;
4951 state |= BMAP_LEFT_FILLING;
4953 state |= BMAP_RIGHT_FILLING;
4955 switch (state & (BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING)) {
4960 xfs_iext_remove(ip, icur, state);
4970 xfs_iext_update_extent(ip, state, icur, got);
4977 xfs_iext_update_extent(ip, state, icur, got);
4990 xfs_iext_update_extent(ip, state, icur, got);
4992 xfs_iext_insert(ip, icur, &new, state);
5020 int i; /* temp state */
5027 uint32_t state = xfs_bmap_fork_to_state(whichfork);
5087 state |= BMAP_LEFT_FILLING;
5089 state |= BMAP_RIGHT_FILLING;
5091 switch (state & (BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING)) {
5096 xfs_iext_remove(ip, icur, state);
5119 xfs_iext_update_extent(ip, state, icur, &got);
5133 xfs_iext_update_extent(ip, state, icur, &got);
5150 xfs_iext_update_extent(ip, state, icur, &got);
5172 * our state and return the error.
5197 xfs_iext_update_extent(ip, state, icur, &old);
5211 xfs_iext_insert(ip, icur, &new, state);