Re: [PATCH] fscrypt: Remove FSCRYPT_MODE_MAX
From: Eric Biggers
Date: Sun Jul 05 2026 - 15:12:18 EST
On Thu, Jun 18, 2026 at 04:14:04PM -0700, Eric Biggers wrote:
> Now that the arrays of per-mode keys in struct fscrypt_master_key have
> been replaced by a linked list, the definition of FSCRYPT_MODE_MAX
> doesn't do anything useful. (Previously it was used to size these
> arrays.) Remove it.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> fs/crypto/fscrypt_private.h | 3 ---
> fs/crypto/keysetup.c | 5 -----
> include/uapi/linux/fscrypt.h | 1 -
> tools/include/uapi/linux/fscrypt.h | 1 -
> 4 files changed, 10 deletions(-)
Applied to https://git.kernel.org/pub/scm/fs/fscrypt/linux.git/log/?h=for-next
- Eric