summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2022-09-09 17:53:34 -0400
committerDavid Sterba <dsterba@suse.com>2022-09-26 12:28:04 +0200
commitaa852dabf9646cb2517e3e7d7d9077201938a6d3 (patch)
treef5dc9128b4294b367f3e5da9883e9d8eeaccad26 /fs/btrfs/inode.c
parentccaeff929098dcad1661d0e4d524e569bac949be (diff)
btrfs: make tree_search return struct extent_state
We have a consistent pattern of n = tree_search(); if (!n) goto out; state = rb_entry(n, struct extent_state, rb_node); while (state) { /* do something. */ } which is a bit redundant. If we make tree_search return the state we can simply have state = tree_search(); while (state) { /* do something. */ } which cleans up the code quite a bit. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions