You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
494 B

7 months ago
  1. #include "lock.h"
  2. #include "lfmp.h"
  3. typedef struct node_s node_t;
  4. struct node_s
  5. {
  6. node_t *name_next;
  7. node_t *id_next;
  8. uint64_t nodeid;
  9. char *name;
  10. node_t *parent;
  11. uint64_t nlookup;
  12. uint32_t refctr;
  13. uint32_t open_count;
  14. uint64_t hidden_fh;
  15. int32_t treelock;
  16. lock_t *locks;
  17. uint32_t backing_id;
  18. uint32_t stat_crc32b;
  19. uint8_t is_stat_cache_valid:1;
  20. };
  21. node_t *node_alloc();
  22. void node_free(node_t*);
  23. int node_gc1();
  24. void node_gc();
  25. lfmp_t *node_lfmp();