Lines Matching refs:ret
251 int ret = -1; in __frontswap_store() local
276 ret = ops->store(type, offset, page); in __frontswap_store()
277 if (!ret) /* successful store */ in __frontswap_store()
280 if (ret == 0) { in __frontswap_store()
288 ret = -1; in __frontswap_store()
289 return ret; in __frontswap_store()
300 int ret = -1; in __frontswap_load() local
316 ret = ops->load(type, offset, page); in __frontswap_load()
317 if (!ret) /* successful load */ in __frontswap_load()
320 if (ret == 0) { in __frontswap_load()
327 return ret; in __frontswap_load()
389 int ret = -EINVAL; in __frontswap_unuse_pages() local
406 ret = -ENOMEM; in __frontswap_unuse_pages()
412 ret = 0; in __frontswap_unuse_pages()
416 return ret; in __frontswap_unuse_pages()
453 int type, ret; in frontswap_shrink() local
461 ret = __frontswap_shrink(target_pages, &pages_to_unuse, &type); in frontswap_shrink()
463 if (ret == 0) in frontswap_shrink()