ceph: mark cap remove with RB_CLEAR_NODE() instead of setting ci=NULL

__ceph_remove_cap() erases the ceph_cap object from the RB tree, thus
it seems natural to use RB_CLEAR_NODE() / RB_EMPTY_NODE() for the
removal check.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
Max Kellermann 2026-07-06 09:38:11 +02:00 • committed by Ilya Dryomov
commit af05588c97
2 changed files with 19 additions and 4 deletions