diff options
author | David Sterba <dsterba@suse.com> | 2025-03-27 19:19:18 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2025-05-15 15:30:40 +0300 |
commit | 6aa79c4f25197cc54479dc87d79ecd45571fb062 (patch) | |
tree | 9a117262edd3e1541f3ef70c40fd1734aaadb265 /fs/btrfs/compression.c | |
parent | c4669e4a8b660143ad1fc9743dcb2a3d81a74b42 (diff) | |
download | linux-6aa79c4f25197cc54479dc87d79ecd45571fb062.tar.xz |
btrfs: use rb_entry_safe() where possible to simplify code
Simplify conditionally reading an rb_entry(), there's the
rb_entry_safe() helper that checks the node pointer for NULL so we don't
have to write it explicitly.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions