Whamcloud - gitweb
LU-15420 sec: fix native fscrypt builds 44/57344/2
authorJames Simmons <jsimmons@infradead.org>
Mon, 9 Dec 2024 16:08:59 +0000 (11:08 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 2 Jan 2025 20:52:09 +0000 (20:52 +0000)
commitec4bc9c6007df4207cf3a84128caf3b030fe2f8d
tree1dcfa5bc0aea321bad8ed358fa386aa38ca22cab
parent1a6967eff6663c70e15f14e853f531316ad9eab5
LU-15420 sec: fix native fscrypt builds

The recent changes in libcfs prevents native fscrypt from
building. Replace llcrypt.h with lustre_crypto.h in linux-prim.c
which will build under all conditions. We really only need
llcrypt_[init|exit] for this code. The new symlink fix for
fscrypt also breaks when building native fscrypt. Now 5.9 or
less kernels will build natively and it pass all testing.

Test-Parameters: trivial
Fixes: 209607fd79 ("LU-18096 enc: ll_get_symlink overlay function")
Change-Id: I8230364604992150da5bbfb27a3407e99e212ba6
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57344
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/linux/linux-prim.c
libcfs/libcfs/module.c
lustre/llite/crypto.c
lustre/llite/llite_internal.h