diff options
author | Eric Biggers <ebiggers@google.com> | 2023-09-25 08:54:47 +0300 |
---|---|---|
committer | Eric Biggers <ebiggers@google.com> | 2023-09-25 09:03:09 +0300 |
commit | 5970fbad1036d1015abe45651628b39b5bcb8a22 (patch) | |
tree | 1a57e1fb991838e1658d7087cb9515bc6446fb52 /fs/ext4/crypto.c | |
parent | 6465e260f48790807eef06b583b38ca9789b6072 (diff) | |
download | linux-5970fbad1036d1015abe45651628b39b5bcb8a22.tar.xz |
fscrypt: make it clearer that key_prefix is deprecated
fscrypt_operations::key_prefix should not be set by any filesystems that
aren't setting it already. This is already documented, but apparently
it's not sufficiently clear, as both ceph and btrfs have tried to set
it. Rename the field to legacy_key_prefix and improve the documentation
to hopefully make it clearer.
Link: https://lore.kernel.org/r/20230925055451.59499-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'fs/ext4/crypto.c')
-rw-r--r-- | fs/ext4/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/crypto.c b/fs/ext4/crypto.c index 453d4da5de52..99a4769a53f6 100644 --- a/fs/ext4/crypto.c +++ b/fs/ext4/crypto.c @@ -240,7 +240,7 @@ static void ext4_get_ino_and_lblk_bits(struct super_block *sb, } const struct fscrypt_operations ext4_cryptops = { - .key_prefix = "ext4:", + .legacy_key_prefix = "ext4:", .get_context = ext4_get_context, .set_context = ext4_set_context, .get_dummy_policy = ext4_get_dummy_policy, |