Whamcloud - gitweb
LU-15420 llite: cleanup ll_lookup_it() 33/56233/9
authorJames Simmons <jsimmons@infradead.org>
Sun, 29 Sep 2024 19:06:53 +0000 (15:06 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 9 Dec 2024 06:09:36 +0000 (06:09 +0000)
commit853085ef9e923df5ed7a3c854f3b5de45a0654a5
tree0f54df79cf92dedea5e8f31ae8283647d688c587
parentdb86ea7871676828f6cdbe913ee8641b4b61b661
LU-15420 llite: cleanup ll_lookup_it()

Newer kernels use fscrypt_prepare_new_inode() to enquire if the
inode is really encrypted. The current Lustre stack is not
setup for this. Much of the fscrypt handling happens at the
top of the basic VFS operation hooks. Rework the stack to
move this handling deeper into tha stack to the level of the
function ll_lookup_it(). This change also cleans up the code
greatly.

Change-Id: I803751759aa954403dd802f7277e870c1f9cd6da
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56233
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/namei.c