Lines Matching defs:key
36 * @key: node key
53 union ubifs_key key;
195 ino = key_inum(c, &r->key);
218 ubifs_assert(c, key_type(c, &rino->key) == UBIFS_INO_KEY);
226 if (key_inum(c, &r->key) == key_inum(c, &rino->key) &&
227 key_type(c, &r->key) == UBIFS_INO_KEY)
247 dbg_mntk(&r->key, "LEB %d:%d len %d deletion %d sqnum %llu key ",
250 if (is_hash_key(c, &r->key)) {
252 err = ubifs_tnc_remove_nm(c, &r->key, &r->nm);
254 err = ubifs_tnc_add_nm(c, &r->key, r->lnum, r->offs,
258 switch (key_type(c, &r->key)) {
261 ino_t inum = key_inum(c, &r->key);
275 err = ubifs_tnc_remove(c, &r->key);
279 err = ubifs_tnc_add(c, &r->key, r->lnum, r->offs,
285 err = ubifs_recover_size_accum(c, &r->key, r->deletion,
356 if (is_hash_key(c, &r->key))
369 * @key: node key
384 const u8 *hash, union ubifs_key *key,
390 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
392 if (key_inum(c, key) >= c->highest_inum)
393 c->highest_inum = key_inum(c, key);
407 key_copy(c, key, &r->key);
421 * @key: node key
433 const u8 *hash, union ubifs_key *key,
440 dbg_mntk(key, "add LEB %d:%d, key ", lnum, offs);
441 if (key_inum(c, key) >= c->highest_inum)
442 c->highest_inum = key_inum(c, key);
462 key_copy(c, key, &r->key);
483 int key_type = key_type_flash(c, dent->key);
497 ubifs_err(c, "bad key type %d", key_type);
746 &snod->key, snod->sqnum, deletion,
754 key_block(c, &snod->key) *
758 &snod->key, snod->sqnum, deletion,
772 &snod->key, dent->name,
782 union ubifs_key key;
793 * Create a fake truncation key just to use the same
796 trun_key_init(c, &key, le32_to_cpu(trun->inum));
798 &key, snod->sqnum, 1, &used,