aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-div.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2022-09-09 17:53:33 -0400
committerDavid Sterba <[email protected]>2022-09-26 12:28:04 +0200
commitccaeff929098dcad1661d0e4d524e569bac949be (patch)
tree8ab7bd8a08e34d574df75dbe937c7d314e92d352 /lib/mpi/mpi-div.c
parent071d19f5130ff699fccf6b766dd6366f5d861da7 (diff)
btrfs: use next_state instead of rb_next where we can
We can simplify a lot of these functions where we have to cycle through extent_state's by simply using next_state() instead of rb_next(). In many spots this allows us to do things like while (state) { /* whatever */ state = next_state(state); } instead of while (1) { state = rb_entry(n, struct extent_state, rb_node); n = rb_next(n); if (!n) break; } Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions