Lines Matching refs:chfs_peb
58 int peb_in_use_cmp(struct chfs_peb *peb1, struct chfs_peb *peb2);
59 int peb_free_cmp(struct chfs_peb *peb1, struct chfs_peb *peb2);
61 struct chfs_peb * find_peb_in_use(struct chfs_ebh *ebh, int pebnr);
739 peb_in_use_cmp(struct chfs_peb *peb1, struct chfs_peb *peb2)
745 peb_free_cmp(struct chfs_peb *peb1, struct chfs_peb *peb2)
757 RB_PROTOTYPE(peb_in_use_rbtree, chfs_peb, u.rb, peb_in_use_cmp);
758 RB_GENERATE(peb_in_use_rbtree, chfs_peb, u.rb, peb_in_use_cmp);
759 RB_PROTOTYPE(peb_free_rbtree, chfs_peb, u.rb, peb_free_cmp);
760 RB_GENERATE(peb_free_rbtree, chfs_peb, u.rb, peb_free_cmp);
777 struct chfs_peb *peb;
779 peb = kmem_alloc(sizeof(struct chfs_peb), KM_SLEEP);
798 struct chfs_peb *
801 struct chfs_peb peb, *result;
822 struct chfs_peb *peb, *result;
824 peb = kmem_alloc(sizeof(struct chfs_peb), KM_SLEEP);
830 kmem_free(peb, sizeof(struct chfs_peb));
852 struct chfs_peb *peb, *result;
854 peb = kmem_alloc(sizeof(struct chfs_peb), KM_SLEEP);
860 kmem_free(peb, sizeof(struct chfs_peb));
878 struct chfs_peb *peb = priv->peb;
900 kmem_free(peb, sizeof(struct chfs_peb));
909 kmem_free(peb, sizeof(struct chfs_peb));
917 kmem_free(peb, sizeof(struct chfs_peb));
934 struct chfs_peb *peb = NULL;
1004 kmem_free(peb, sizeof(struct chfs_peb));
1022 struct chfs_peb *peb;
1689 EBH_TREE_DESTROY(peb_free_rbtree, &ebh->free, struct chfs_peb);
1690 EBH_TREE_DESTROY(peb_in_use_rbtree, &ebh->in_use, struct chfs_peb);
1692 EBH_QUEUE_DESTROY(&ebh->fully_erased, struct chfs_peb, u.queue);
1693 EBH_QUEUE_DESTROY(&ebh->to_erase, struct chfs_peb, u.queue);
1772 struct chfs_peb *peb;
1801 kmem_free(peb, sizeof(struct chfs_peb));
2053 struct chfs_peb *peb = NULL;
2129 kmem_free(peb, sizeof(struct chfs_peb));