Home
last modified time | relevance | path

Searched refs:frontswap_ops (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/mm/
Dfrontswap.c30 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 …]
Dzswap.c1418 static const struct frontswap_ops zswap_frontswap_ops = {
/linux-5.19.10/include/linux/
Dfrontswap.h10 struct frontswap_ops { struct
18 int frontswap_register_ops(const struct frontswap_ops *ops); argument
/linux-5.19.10/Documentation/translations/zh_CN/vm/
Dfrontswap.rst23 调用frontswap_register_ops将自己与frontswap链接起来,以适当地设置frontswap_ops
/linux-5.19.10/Documentation/vm/
Dfrontswap.rst21 frontswap_ops funcs appropriately and the functions it provides must