• Home
  • Raw
  • Download

Lines Matching refs:ret

115 	int ret;  in zswap_comp_op()  local
120 ret = crypto_comp_compress(tfm, src, slen, dst, dlen); in zswap_comp_op()
123 ret = crypto_comp_decompress(tfm, src, slen, dst, dlen); in zswap_comp_op()
126 ret = -EINVAL; in zswap_comp_op()
130 return ret; in zswap_comp_op()
543 int ret; in zswap_writeback_entry() local
569 ret = -ENOMEM; in zswap_writeback_entry()
575 ret = -EEXIST; in zswap_writeback_entry()
584 ret = zswap_comp_op(ZSWAP_COMPOP_DECOMPRESS, src, in zswap_writeback_entry()
588 BUG_ON(ret); in zswap_writeback_entry()
633 return ret; in zswap_writeback_entry()
645 int ret; in zswap_frontswap_store() local
653 ret = -ENODEV; in zswap_frontswap_store()
662 ret = -ENOMEM; in zswap_frontswap_store()
671 ret = -ENOMEM; in zswap_frontswap_store()
678 ret = zswap_comp_op(ZSWAP_COMPOP_COMPRESS, src, PAGE_SIZE, dst, &dlen); in zswap_frontswap_store()
680 if (ret) { in zswap_frontswap_store()
681 ret = -EINVAL; in zswap_frontswap_store()
687 ret = zpool_malloc(zswap_pool, len, __GFP_NORETRY | __GFP_NOWARN, in zswap_frontswap_store()
689 if (ret == -ENOSPC) { in zswap_frontswap_store()
693 if (ret) { in zswap_frontswap_store()
712 ret = zswap_rb_insert(&tree->rbroot, entry, &dupentry); in zswap_frontswap_store()
713 if (ret == -EEXIST) { in zswap_frontswap_store()
719 } while (ret == -EEXIST); in zswap_frontswap_store()
732 return ret; in zswap_frontswap_store()
746 int ret; in zswap_frontswap_load() local
763 ret = zswap_comp_op(ZSWAP_COMPOP_DECOMPRESS, src, entry->length, in zswap_frontswap_load()
767 BUG_ON(ret); in zswap_frontswap_load()