Searched refs:frontswap_ops (Results 1 – 5 of 5) sorted by relevance
30 static const struct frontswap_ops *frontswap_ops __read_mostly;97 int frontswap_register_ops(const struct frontswap_ops *ops) in frontswap_register_ops()99 if (frontswap_ops) in frontswap_register_ops()102 frontswap_ops = ops; in frontswap_register_ops()128 frontswap_ops->init(type); in frontswap_init()168 VM_BUG_ON(!frontswap_ops); in __frontswap_store()180 frontswap_ops->invalidate_page(type, offset); in __frontswap_store()183 ret = frontswap_ops->store(type, offset, page); in __frontswap_store()207 VM_BUG_ON(!frontswap_ops); in __frontswap_load()215 ret = frontswap_ops->load(type, offset, page); in __frontswap_load()[all …]
1418 static const struct frontswap_ops zswap_frontswap_ops = {
10 struct frontswap_ops { struct18 int frontswap_register_ops(const struct frontswap_ops *ops); argument
23 调用frontswap_register_ops将自己与frontswap链接起来,以适当地设置frontswap_ops
21 frontswap_ops funcs appropriately and the functions it provides must