X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=include%2Flinux%2Fcrush%2Fcrush.h;h=7c4750811b966e7d865484c2cf7020199c628164;hb=f671d4cd9b36691ac4ef42cde44c1b7a84e13631;hp=158a4d25ca83f2f36dec50ba69e845f433385676;hpb=fc7c3ae5ab9246ad96aab4d0d57f67e9255cfb56;p=mirror_ubuntu-jammy-kernel.git diff --git a/include/linux/crush/crush.h b/include/linux/crush/crush.h index 158a4d25ca83..7c4750811b96 100644 --- a/include/linux/crush/crush.h +++ b/include/linux/crush/crush.h @@ -166,4 +166,9 @@ extern void crush_destroy_bucket_straw(struct crush_bucket_straw *b); extern void crush_destroy_bucket(struct crush_bucket *b); extern void crush_destroy(struct crush_map *map); +static inline int crush_calc_tree_node(int i) +{ + return ((i+1) << 1)-1; +} + #endif