lkml.org 
[lkml]   [2022]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 4/5] zsmalloc: Add ops fields to zs_pool to store evict handlers
    On (22/10/26 13:06), Nhat Pham wrote:
    > +struct zs_pool;
    > +
    > +struct zs_ops {
    > + int (*evict)(struct zs_pool *pool, unsigned long handle);
    > +};
    > +
    > struct zs_pool {
    > const char *name;
    >
    > @@ -242,6 +248,12 @@ struct zs_pool {
    > /* List tracking the zspages in LRU order by most recently added object */
    > struct list_head lru;
    >
    > +#ifdef CONFIG_ZPOOL
    > + const struct zs_ops *ops;
    > + struct zpool *zpool;
    > + const struct zpool_ops *zpool_ops;
    > +#endif

    I really don't think I follow this zpoll_ops and zs_ops things.
    Why do we have zs_ops?

    \
     
     \ /
      Last update: 2022-11-02 05:11    [W:4.175 / U:0.208 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site