Whamcloud - gitweb
LU-15420 llite: use op_data to store context states 53/56353/10
authorJames Simmons <jsimmons@infradead.org>
Mon, 2 Dec 2024 16:40:03 +0000 (09:40 -0700)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:25:31 +0000 (06:25 +0000)
commit00e21d59b0a92de5fc22ee331828d0ec4de3403e
tree35bf6eb2cf86094462983f6646a53c6105f19f42
parent76d0eeea4fbc8fffb9cd6bae368eea19e09b6c17
LU-15420 llite: use op_data to store context states

The function ll_lookup_it() uses pointers to both secctx
and encctx states since that data can either come from the
server or is created locally on the client. Here we move
the code to use the pointer already in the struct md_op_data.
The reason for this change is that the fscrypt API needs
this information when setting a encrypted context.

Change-Id: Ia46ef093beb08a960fda6493326c92fd905b02f9
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56353
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Timothy Day <timday@amazon.com>
lustre/include/lustre_crypto.h
lustre/include/obd.h
lustre/llite/crypto.c
lustre/llite/llite_lib.c
lustre/llite/namei.c