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.

30 lines
470 B

  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 stat_crc32b;
  18. uint8_t is_stat_cache_valid:1;
  19. };
  20. node_t *node_alloc();
  21. void node_free(node_t*);
  22. int node_gc1();
  23. void node_gc();
  24. lfmp_t *node_lfmp();