Message ID | 20220827104600.1813214-1-liushixin2@huawei.com (mailing list archive) |
---|---|
Headers | show |
Series | Delay the initializaton of zswap | expand |
On Sat, 27 Aug 2022 18:45:55 +0800 Liu Shixin <liushixin2@huawei.com> wrote: > In the initialization of zswap, about 18MB memory will be allocated for > zswap_pool. Since not all users use zswap, the memory may be wasted. Save > the memory for these users by delaying the initialization of zswap to > first enablement. > > v2->v3: Fix frontswap_ops NULL reported by Nathan and add init for online > swap device in backend register. > v1->v2: Change init_zswap to zswap_init suggested by Andrew. Thanks. Konrad, could you please take a look for the frontswap changes?