Lines Matching defs:dirhash
39 * The filesystem may also need another kind of hash, the "dirhash", to quickly
40 * find the directory entry. Since filesystems normally compute the dirhash
45 * casefolded directories use this type of dirhash. At least in these cases,
46 * each no-key name must include the name's dirhash too.
49 * variable-length structure. It contains the dirhash, or 0's if the filesystem
59 u32 dirhash[2];
353 * @hash: first part of the name's dirhash, if applicable. This only needs to
356 * @minor_hash: second part of the name's dirhash, if applicable
395 BUILD_BUG_ON(offsetofend(struct fscrypt_nokey_name, dirhash) !=
401 nokey_name.dirhash[0] = hash;
402 nokey_name.dirhash[1] = minor_hash;
506 fname->hash = nokey_name->dirhash[0];
507 fname->minor_hash = nokey_name->dirhash[1];
564 * its dirhash method and has had its fscrypt key set up, this function
565 * calculates the SipHash of that name using the directory's secret dirhash key.