/** * eblob_l2hash_upsert() - updates or inserts entry in cache (hence the name). */ int eblob_l2hash_upsert(struct eblob_l2hash *l2h, const struct eblob_key *key, const struct eblob_ram_control *rctl, int *replaced) { return _eblob_l2hash_insert(l2h, key, rctl, EBLOB_L2HASH_FLAVOR_UPSERT, replaced); }
/** * eblob_l2hash_upsert() - updates or inserts entry in cache (hence the name). */ int eblob_l2hash_upsert(struct eblob_l2hash *l2h, struct eblob_key *key, struct eblob_ram_control *rctl) { return _eblob_l2hash_insert(l2h, key, rctl, EBLOB_L2HASH_TYPE_UPSERT); }
/** * eblob_l2hash_update() - updates entry in cache. Fails if entry is not * already there. */ int eblob_l2hash_update(struct eblob_l2hash *l2h, const struct eblob_key *key, const struct eblob_ram_control *rctl) { return _eblob_l2hash_insert(l2h, key, rctl, EBLOB_L2HASH_FLAVOR_UPDATE, NULL); }