On Tue, Aug 08, 2023 at 01:08:03PM -0400, Sweet Tea Dorminy wrote: > At present, setup_per_mode_enc_key() tries to find, within an array of > mode keys in the master key, an already prepared key, and if it doesn't > find a pre-prepared key, sets up a new one. This caching is not super > clear, at least to me, and splitting this function makes it clearer. > > Signed-off-by: Sweet Tea Dorminy <sweettea-kernel@xxxxxxxxxx> Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Thanks, Josef