Lines Matching refs:frontswap_ops
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()
131 frontswap_ops->init(type); in frontswap_init()
171 VM_BUG_ON(!frontswap_ops); in __frontswap_store()
183 frontswap_ops->invalidate_page(type, offset); in __frontswap_store()
186 ret = frontswap_ops->store(type, offset, page); in __frontswap_store()
210 VM_BUG_ON(!frontswap_ops); in __frontswap_load()
218 ret = frontswap_ops->load(type, offset, page); in __frontswap_load()
232 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_page()
238 frontswap_ops->invalidate_page(type, offset); in __frontswap_invalidate_page()
251 VM_BUG_ON(!frontswap_ops); in __frontswap_invalidate_area()
257 frontswap_ops->invalidate_area(type); in __frontswap_invalidate_area()