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

From: Artem Bityutskiy
Date: Fri May 18 2012 - 09:20:34 EST


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?

--
Best Regards,
Artem Bityutskiy

Attachment: signature.asc
Description: This is a digitally signed message part