Lines Matching refs:pcs
43 struct z_erofs_pcluster_slab *pcs; in z_erofs_create_pcluster_pool() local
47 for (pcs = pcluster_pool; in z_erofs_create_pcluster_pool()
48 pcs < pcluster_pool + ARRAY_SIZE(pcluster_pool); ++pcs) { in z_erofs_create_pcluster_pool()
49 size = struct_size(a, compressed_pages, pcs->maxpages); in z_erofs_create_pcluster_pool()
51 sprintf(pcs->name, "erofs_pcluster-%u", pcs->maxpages); in z_erofs_create_pcluster_pool()
52 pcs->slab = kmem_cache_create(pcs->name, size, 0, in z_erofs_create_pcluster_pool()
54 if (pcs->slab) in z_erofs_create_pcluster_pool()
68 struct z_erofs_pcluster_slab *pcs = pcluster_pool + i; in z_erofs_alloc_pcluster() local
71 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster()
74 pcl = kmem_cache_zalloc(pcs->slab, GFP_NOFS); in z_erofs_alloc_pcluster()
88 struct z_erofs_pcluster_slab *pcs = pcluster_pool + i; in z_erofs_free_pcluster() local
90 if (pcl->pclusterpages > pcs->maxpages) in z_erofs_free_pcluster()
93 kmem_cache_free(pcs->slab, pcl); in z_erofs_free_pcluster()