Re: [PATCH v2] UBIFS: read crypto_lookup from datanodes to znodes

Artem Bityutskiy
2012-05-18T13:19:55Z

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

On Wed, 2012-05-16 at 14:52 +0200, Joel Reardon wrote:
> + if (key_type(c, &(zbr->key)) == UBIFS_DATA_KEY) {
> + struct ubifs_data_node *dn = node;
> + long long crypto_lookup = le64_to_cpu(dn->crypto_lookup);
> + if (zbr->crypto_lookup != 0)
> + ubifs_assert(zbr->crypto_lookup == crypto_lookup);
> + else
> + zbr->crypto_lookup = crypto_lookup;
> + }

Could you please just inject this code directly to
'ubifs_tnc_read_node()' ? I think it is much easier and more nicer, no?