Initialize zstd-related memory handling */
| 669 | |
| 670 | /* Initialize zstd-related memory handling */ |
| 671 | static int __init |
| 672 | zstd_meminit(void) |
| 673 | { |
| 674 | zstd_mempool_init(); |
| 675 | |
| 676 | /* |
| 677 | * Estimate the size of the fallback decompression context. |
| 678 | * The expected size on x64 with current ZSTD should be about 160 KB. |
| 679 | */ |
| 680 | create_fallback_mem(&zstd_dctx_fallback, |
| 681 | P2ROUNDUP(ZSTD_estimateDCtxSize() + sizeof (struct zstd_kmem), |
| 682 | PAGESIZE)); |
| 683 | |
| 684 | return (0); |
| 685 | } |
| 686 | |
| 687 | /* Release object from pool and free memory */ |
| 688 | static void __exit |
no test coverage detected