Lines Matching refs:state
1167 int state = xfs_bmap_fork_to_state(whichfork); in xfs_iread_extents() local
1265 xfs_iext_insert(ip, &icur, &new, state); in xfs_iread_extents()
1266 trace_xfs_read_extent(ip, &icur, state, _THIS_IP_); in xfs_iread_extents()
1541 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_delay_real() local
1583 state |= BMAP_LEFT_FILLING; in xfs_bmap_add_extent_delay_real()
1585 state |= BMAP_RIGHT_FILLING; in xfs_bmap_add_extent_delay_real()
1592 state |= BMAP_LEFT_VALID; in xfs_bmap_add_extent_delay_real()
1594 state |= BMAP_LEFT_DELAY; in xfs_bmap_add_extent_delay_real()
1597 if ((state & BMAP_LEFT_VALID) && !(state & BMAP_LEFT_DELAY) && in xfs_bmap_add_extent_delay_real()
1602 state |= BMAP_LEFT_CONTIG; in xfs_bmap_add_extent_delay_real()
1610 state |= BMAP_RIGHT_VALID; in xfs_bmap_add_extent_delay_real()
1612 state |= BMAP_RIGHT_DELAY; in xfs_bmap_add_extent_delay_real()
1615 if ((state & BMAP_RIGHT_VALID) && !(state & BMAP_RIGHT_DELAY) && in xfs_bmap_add_extent_delay_real()
1620 ((state & (BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING | in xfs_bmap_add_extent_delay_real()
1626 state |= BMAP_RIGHT_CONTIG; in xfs_bmap_add_extent_delay_real()
1632 switch (state & (BMAP_LEFT_FILLING | BMAP_LEFT_CONTIG | in xfs_bmap_add_extent_delay_real()
1642 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1643 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1645 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1678 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1680 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1708 xfs_iext_remove(bma->ip, &bma->icur, state); in xfs_bmap_add_extent_delay_real()
1710 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1734 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1768 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1770 xfs_iext_update_extent(bma->ip, state, &bma->icur, &LEFT); in xfs_bmap_add_extent_delay_real()
1791 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1824 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1858 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1860 xfs_iext_update_extent(bma->ip, state, &bma->icur, &RIGHT); in xfs_bmap_add_extent_delay_real()
1868 xfs_iext_update_extent(bma->ip, state, &bma->icur, new); in xfs_bmap_add_extent_delay_real()
1899 xfs_iext_insert(bma->ip, &bma->icur, &PREV, state); in xfs_bmap_add_extent_delay_real()
1943 xfs_iext_update_extent(bma->ip, state, &bma->icur, &PREV); in xfs_bmap_add_extent_delay_real()
1946 xfs_iext_insert(bma->ip, &bma->icur, &RIGHT, state); in xfs_bmap_add_extent_delay_real()
1947 xfs_iext_insert(bma->ip, &bma->icur, &LEFT, state); in xfs_bmap_add_extent_delay_real()
2016 ASSERT(state == 0 || da_new < da_old); in xfs_bmap_add_extent_delay_real()
2052 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_unwritten_real() local
2084 state |= BMAP_LEFT_FILLING; in xfs_bmap_add_extent_unwritten_real()
2086 state |= BMAP_RIGHT_FILLING; in xfs_bmap_add_extent_unwritten_real()
2093 state |= BMAP_LEFT_VALID; in xfs_bmap_add_extent_unwritten_real()
2095 state |= BMAP_LEFT_DELAY; in xfs_bmap_add_extent_unwritten_real()
2098 if ((state & BMAP_LEFT_VALID) && !(state & BMAP_LEFT_DELAY) && in xfs_bmap_add_extent_unwritten_real()
2103 state |= BMAP_LEFT_CONTIG; in xfs_bmap_add_extent_unwritten_real()
2111 state |= BMAP_RIGHT_VALID; in xfs_bmap_add_extent_unwritten_real()
2113 state |= BMAP_RIGHT_DELAY; in xfs_bmap_add_extent_unwritten_real()
2116 if ((state & BMAP_RIGHT_VALID) && !(state & BMAP_RIGHT_DELAY) && in xfs_bmap_add_extent_unwritten_real()
2121 ((state & (BMAP_LEFT_CONTIG | BMAP_LEFT_FILLING | in xfs_bmap_add_extent_unwritten_real()
2127 state |= BMAP_RIGHT_CONTIG; in xfs_bmap_add_extent_unwritten_real()
2132 switch (state & (BMAP_LEFT_FILLING | BMAP_LEFT_CONTIG | in xfs_bmap_add_extent_unwritten_real()
2142 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_unwritten_real()
2143 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_unwritten_real()
2145 xfs_iext_update_extent(ip, state, icur, &LEFT); in xfs_bmap_add_extent_unwritten_real()
2181 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_unwritten_real()
2183 xfs_iext_update_extent(ip, state, icur, &LEFT); in xfs_bmap_add_extent_unwritten_real()
2215 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_unwritten_real()
2217 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2248 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2276 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2278 xfs_iext_update_extent(ip, state, icur, &LEFT); in xfs_bmap_add_extent_unwritten_real()
2310 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2311 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_unwritten_real()
2344 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2346 xfs_iext_update_extent(ip, state, icur, &RIGHT); in xfs_bmap_add_extent_unwritten_real()
2376 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2378 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_unwritten_real()
2419 xfs_iext_update_extent(ip, state, icur, &PREV); in xfs_bmap_add_extent_unwritten_real()
2421 xfs_iext_insert(ip, icur, &r[1], state); in xfs_bmap_add_extent_unwritten_real()
2422 xfs_iext_insert(ip, icur, &r[0], state); in xfs_bmap_add_extent_unwritten_real()
2517 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_delay() local
2527 state |= BMAP_LEFT_VALID; in xfs_bmap_add_extent_hole_delay()
2529 state |= BMAP_LEFT_DELAY; in xfs_bmap_add_extent_hole_delay()
2537 state |= BMAP_RIGHT_VALID; in xfs_bmap_add_extent_hole_delay()
2539 state |= BMAP_RIGHT_DELAY; in xfs_bmap_add_extent_hole_delay()
2546 if ((state & BMAP_LEFT_VALID) && (state & BMAP_LEFT_DELAY) && in xfs_bmap_add_extent_hole_delay()
2549 state |= BMAP_LEFT_CONTIG; in xfs_bmap_add_extent_hole_delay()
2551 if ((state & BMAP_RIGHT_VALID) && (state & BMAP_RIGHT_DELAY) && in xfs_bmap_add_extent_hole_delay()
2554 (!(state & BMAP_LEFT_CONTIG) || in xfs_bmap_add_extent_hole_delay()
2557 state |= BMAP_RIGHT_CONTIG; in xfs_bmap_add_extent_hole_delay()
2562 switch (state & (BMAP_LEFT_CONTIG | BMAP_RIGHT_CONTIG)) { in xfs_bmap_add_extent_hole_delay()
2580 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_hole_delay()
2582 xfs_iext_update_extent(ip, state, icur, &left); in xfs_bmap_add_extent_hole_delay()
2601 xfs_iext_update_extent(ip, state, icur, &left); in xfs_bmap_add_extent_hole_delay()
2618 xfs_iext_update_extent(ip, state, icur, &right); in xfs_bmap_add_extent_hole_delay()
2628 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_hole_delay()
2664 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_add_extent_hole_real() local
2676 state |= BMAP_LEFT_VALID; in xfs_bmap_add_extent_hole_real()
2678 state |= BMAP_LEFT_DELAY; in xfs_bmap_add_extent_hole_real()
2686 state |= BMAP_RIGHT_VALID; in xfs_bmap_add_extent_hole_real()
2688 state |= BMAP_RIGHT_DELAY; in xfs_bmap_add_extent_hole_real()
2695 if ((state & BMAP_LEFT_VALID) && !(state & BMAP_LEFT_DELAY) && in xfs_bmap_add_extent_hole_real()
2700 state |= BMAP_LEFT_CONTIG; in xfs_bmap_add_extent_hole_real()
2702 if ((state & BMAP_RIGHT_VALID) && !(state & BMAP_RIGHT_DELAY) && in xfs_bmap_add_extent_hole_real()
2707 (!(state & BMAP_LEFT_CONTIG) || in xfs_bmap_add_extent_hole_real()
2710 state |= BMAP_RIGHT_CONTIG; in xfs_bmap_add_extent_hole_real()
2716 switch (state & (BMAP_LEFT_CONTIG | BMAP_RIGHT_CONTIG)) { in xfs_bmap_add_extent_hole_real()
2725 xfs_iext_remove(ip, icur, state); in xfs_bmap_add_extent_hole_real()
2727 xfs_iext_update_extent(ip, state, icur, &left); in xfs_bmap_add_extent_hole_real()
2763 xfs_iext_update_extent(ip, state, icur, &left); in xfs_bmap_add_extent_hole_real()
2790 xfs_iext_update_extent(ip, state, icur, &right); in xfs_bmap_add_extent_hole_real()
2812 xfs_iext_insert(ip, icur, new, state); in xfs_bmap_add_extent_hole_real()
4739 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_del_extent_delay() local
4775 state |= BMAP_LEFT_FILLING; in xfs_bmap_del_extent_delay()
4777 state |= BMAP_RIGHT_FILLING; in xfs_bmap_del_extent_delay()
4779 switch (state & (BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING)) { in xfs_bmap_del_extent_delay()
4784 xfs_iext_remove(ip, icur, state); in xfs_bmap_del_extent_delay()
4796 xfs_iext_update_extent(ip, state, icur, got); in xfs_bmap_del_extent_delay()
4806 xfs_iext_update_extent(ip, state, icur, got); in xfs_bmap_del_extent_delay()
4834 xfs_iext_update_extent(ip, state, icur, got); in xfs_bmap_del_extent_delay()
4836 xfs_iext_insert(ip, icur, &new, state); in xfs_bmap_del_extent_delay()
4865 int state = BMAP_COWFORK; in xfs_bmap_del_extent_cow() local
4878 state |= BMAP_LEFT_FILLING; in xfs_bmap_del_extent_cow()
4880 state |= BMAP_RIGHT_FILLING; in xfs_bmap_del_extent_cow()
4882 switch (state & (BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING)) { in xfs_bmap_del_extent_cow()
4887 xfs_iext_remove(ip, icur, state); in xfs_bmap_del_extent_cow()
4897 xfs_iext_update_extent(ip, state, icur, got); in xfs_bmap_del_extent_cow()
4904 xfs_iext_update_extent(ip, state, icur, got); in xfs_bmap_del_extent_cow()
4917 xfs_iext_update_extent(ip, state, icur, got); in xfs_bmap_del_extent_cow()
4919 xfs_iext_insert(ip, icur, &new, state); in xfs_bmap_del_extent_cow()
4954 int state = xfs_bmap_fork_to_state(whichfork); in xfs_bmap_del_extent_real() local
5020 state |= BMAP_LEFT_FILLING; in xfs_bmap_del_extent_real()
5022 state |= BMAP_RIGHT_FILLING; in xfs_bmap_del_extent_real()
5024 switch (state & (BMAP_LEFT_FILLING | BMAP_RIGHT_FILLING)) { in xfs_bmap_del_extent_real()
5029 xfs_iext_remove(ip, icur, state); in xfs_bmap_del_extent_real()
5049 xfs_iext_update_extent(ip, state, icur, &got); in xfs_bmap_del_extent_real()
5063 xfs_iext_update_extent(ip, state, icur, &got); in xfs_bmap_del_extent_real()
5079 xfs_iext_update_extent(ip, state, icur, &got); in xfs_bmap_del_extent_real()
5123 xfs_iext_update_extent(ip, state, icur, &old); in xfs_bmap_del_extent_real()
5134 xfs_iext_insert(ip, icur, &new, state); in xfs_bmap_del_extent_real()
6133 xfs_exntst_t state) in xfs_bmap_finish_one() argument
6142 ip->i_ino, whichfork, startoff, *blockcount, state); in xfs_bmap_finish_one()